🎉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

How to query element property in HM?

User: "Artem"
New Altair Community Member
Updated by Artem

Hi

I'm trying to get the property ID (PSHELL ID) from the manually selected elements and write it to *.txt file. Can anyone suggest a command? I did not find a suitable one in the help.

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    Matrix Browser seems like a good option for doing this.

    The following may help:

    https://community.altair.com/community?id=kb_article&sys_id=eec0d22e1b6ad0108017dc61ec4bcb9c

    User: "tinh"
    Altair Community Member
    Updated by tinh
    hi there are several ways... pick your concerned elems: *createmarkpanel elems 1 "pick it!" get the elems ids set eids [hm_getmark elems 1] get there pid: foreach eid $eids { set pid [hm_getentityvalue elems $eid component.property.id 0] #maybe pshell id is different, as it is a solver attribute: set psid [hm_getsolverid props $pid] puts "eid=$eid psid=$psid" }
    User: "Ben Buchanan"
    Altair Employee
    Updated by Ben Buchanan

    hi there are several ways... pick your concerned elems: *createmarkpanel elems 1 "pick it!" get the elems ids set eids [hm_getmark elems 1] get there pid: foreach eid $eids { set pid [hm_getentityvalue elems $eid component.property.id 0] #maybe pshell id is different, as it is a solver attribute: set psid [hm_getsolverid props $pid] puts "eid=$eid psid=$psid" }

    Yes!  This would be the scripting approach.  I would suggest using hm_getvalue rather than hm_getentityvalue though.

    hm_getvalue elem id=$eid dataname=propertyid

    https://2022.help.altair.com/2022/hwdesktop/hwd/topics/reference/hm/hm_getvalue.htm