🎉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

Is there a way to get the component name from the component ID?

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

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.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "tinh"
    Altair Community Member
    Updated by tinh

    Use hm_getcollectorname