hm_getentityvalue, help.
hm_getentityvalue, help.
(OP)
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
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





RE: hm_getentityvalue, help.
http://forum.altairhyperworks.com/index.php?/topic...
*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]
}