How to select SPRING2 elements in the model and mask them using TCL?
Hi All,
In my model I have several spring elements of type SPRING2 and SPRINGA. Let's say, I want to select only SPRING2 elements and mask them and I want to automate this task using TCL. (I am using HyperMesh Desktop 2017.3)
So first, I did this task manually by going to mask command and selected elements by config as shown below:
After this I went to command.tcl file and I got code written like:
But, when I searched the Altair documentation for selecting elements by config, I found this:
So, in the command window of Hypermesh desktop 2017.3 I typed:
*createmark elements 1 "by config type" type=SPRINGA
But it is not storing any elements in the mark. Can anyone help me with this? It would be very helpful !!
Thank you!
Answers
-
Hello. nice to meet you.
I too have stumbled in the same situation.
As a result, I think that it works fine if I write it as follows.*createmark elements 1 "by config type" 1 spring "SPRING2"
*maskentitymark elements 1 0
hm_markckear elements 1Next, since the help document is a little complicated, I will put a little commentary.
*createmark elements markId "by config type" displayed_flag config ?type1? type2? ?…?
about "1" -> If displayed_flag is 1, only displayed entities will be considered. Otherwise, all entities will be searched.
config = "spring"
type = "SPRING2"
Sorry for my poor English.
I have the same issue, I hope you can help me.best Regards
1