🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

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

Sort by:
1 - 2 of 21
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    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.

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

    Wow

    Thanks a lot !

    Worked perfectly !