HyperMesh, Check ElemType
HyperMesh, Check ElemType
(OP)
Dear all,
I am a new user pf 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 pf 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: HyperMesh, Check ElemType
set id 10
set prop [hm_getentityvalue comps $id "property.id" 0 -byid]
set s1 [hm_attributelist props $prop name]
set s2 " "
set endo [string first $s2 $s1]
set elemt [string range $s1 0 $endo]
puts $elemt
RE: HyperMesh, Check ElemType
solid185 etc... dont have..