Getting the PSHELL id with TCL
Hello
It is me, again.
I try to get access to the 'ID' number in the picture I've linked below.
http://data.imagup.com/10/1154338597.0 - OptiStructjpg
I have tried :
This way
hm_createmark props 1 'PSHELL__$Elt'
set IdPSHELL [hm_getmark props 1]
This way
set IdPSHELL1 [hm_getentityvalue props 'PSHELL__$Elt' 'property.id' 1 -byname ]
This way
set IdPSHELL2 [hm_getentityvalue props 'PSHELL__$Elt' 'id' 1 -byname ]
This way
set IdPSHELL3 [ hm_entityinfo id props 'PSHELL__$Elt']
For the first one, i get the number of the element on whitch the PSHELL was created ( meaning PSHELL_XXXX )
And the other ones, i get a blank space, or the positionof the PSHELL selected in the list of property
Meaning, for PSHELL__9624 i get 9624 or blank or 28 and I want the number 3015 !!!
Can't see how to get this Id out....
Thanks for reading and for the help !
Answers
-
you should use use 'hm_getsolverid' to get the solver id of the property and not the HM id, which is obtained from the *createmark or hm_getentityvalue commands.
hm_getsolverid – Returns both the solver ID and pool name for the specified HyperMesh entity.
0 -
Wow
Thanks a lot !
Worked perfectly !
0