Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

hm_getentityvalue, help.

Status
Not open for further replies.

Rui Simoes

Mechanical
Joined
Mar 7, 2017
Messages
4
Location
NL
Dear all,

I am a new user of HM. Maybe this is an easy one, or... just not possible for what ever reason..

I need to create a script to change the name of the collector/component.
Basically i want its name to reflect the material as well as the elem type used.

I was able to find how to get some properties like:
set id 1
hm_getentityvalue comps $id "property.id" 0 -byid
hm_getentityvalue comps $id "material.id" 0 -byid
there are alot of scripts online, but they always access this same properties.

but i am now missing the elem type.
does any one know how to get it??

Thanks in advance,
Rui
 
this could be useful for you


*createmarkpanel elems 1 "Select Elems"
set elems [hm_getmark elems 1]
*clearmark elems 1

foreach eid $elems {
set typename [hm_getentityvalue elems $eid typename 1]
puts [format "Eid %6d ; Typename= %s" $eid $typename]
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top