🎉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

hm_entityinfo

User: "evsm1982"
Altair Community Member
Updated by evsm1982

Hello, 

 

I don't know what am I doing wrong.

 

I tried to get property name - this works fine.

 

I tried to get property id - this is not OK.

 

set entity_name [hm_entityinfo name props $old_prop ] - this will return the property name - everything is OK

 

set entity_id [hm_entityinfo id props $old_prop -byid ] - this will return the property id as '2' even if the property id is 123123      WHY?:(/emoticons/default_sad.png' srcset='/emoticons/sad@2x.png 2x' title=':(' width='20' /> 

 

Thank you.

Find more posts tagged with

Sort by:
1 - 6 of 61
    User: "evsm1982"
    Altair Community Member
    OP
    Updated by evsm1982

    Hello, 

     

    I succeeded using hm_getmark. This gave me the component id that is useful for me.

     

    Thank you.

     

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

    set xentity_id [hm_entityinfo id props $old_prop -byid]

    set entity_id [hm_getsolverid props $xentity_id]

     

    should work for you

    User: "evsm1982"
    Altair Community Member
    OP
    Updated by evsm1982

    Hello,

     

    This works. :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

     

    Thank you.

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

    set xentity_id [hm_entityinfo id props $old_prop -byid]

    set entity_id [hm_getsolverid props $xentity_id]

     

    should work for you

    Hi....

    I am trying to get the property ID using the same commands but cannot.

    The entityinfo command is not working for ID and the getsolverid is returning both ID and domain.

    I tried getentityvalue too but not working.

     

    How can I get only the property ID in a loop. Please suggest.

    Thanks in advance!!

    User: "tinh"
    Altair Community Member
    Updated by tinh

    hi

    why need hm_entityinfo id while old_prop is already id?

    al you nèed is 

    set prop_sid [lindex [hm_getsolverid props $old_prop] 0]

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

    Thanks Tin, I`ve understood the concept!!