Is there a way to get the component name from the component ID?
Logan_21859
New Altair Community Member
I am currently writing a macro where I would like to query a particular surface for its component ID, and then use the component ID to store the component name as a string so I can actively update the current component, my code in question is as follows:
foreach i $surfID2 {
*createmark surfaces 1 [lindex $surfID2 $surfnum]
set curComp [hm_getmark comps 1]
#*currentcollector components $curComp
...
}
As it is right now, it only stores the component ID in curComp, so I would like to now if there's another command or query I could use to store the component's name in curComp instead. Thanks.
0
Answers
-
Use hm_getcollectorname
0