TCL command and composite definition
Hi!
I'm working with optistruct, in Hypermesh. And I'm trying to create a ply with tcl, in which I can select the shape automaticly. Lets consider that I know the name of the set that I want to select, but not its id. It is the same for the material and the color. This is an example of what I have, reffered with id:
*createentity plies id = 19 cardimage="PLY" entitylistdisplayed={sets 15} resultrequest=1 name="ply0-1" thickness1=0.125 material=1
Answers
-
Hello @RCuvillo ,
hm_getvalue uis the command you can use for such case. It query for any attribute, and request an identifier hich can be either the id, the name or a mark id
in your case, it should look like
set PlyID [hm_getvalue name="ply_name" dataname=id]
You can find extra details about hm_getvalue with the following contents:
- HyperWorks automation e-learning:
Altair HyperWorks Customization and Automation eLearning
- the HyperMesh automation playlist in our Altair How-To channel:
https://www.youtube.com/watch?v=-QkM8hI1vYk&list=PLGNemB0NFb0AXOgj3rPq929yZwXHQK63-
Best Regards,
Michael
1