🎉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

Retriving component id from component name

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

hi

    i need idea about retriving component id by giving component name....

   if any one know the answer,reply ..plz

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

    This is a trickier process in HyperView than in HyperMesh  You need a component handle to get the component id from.

     

    You can search through the components in your model to match the name you want to the 'Label' which you can retrieve using a command such as:

     

    set compname_test [comphandle GetLabel]

     

     

    and once you know which component handle matches the one you want, you can get the ID number using

     

    comphandle GetComponentID