Getting the PSHELL id with TCL

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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 !

Find more posts tagged with