Get the components Name from a FE Model

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi , 

 

i  am new to hypermesh customization, now i need to get a components names from a FE Model.How can i do that kindly guide me to solve this problem.

thanks in advance 

 

thanks & regards 

 

Suresh Kumar V

Answers

  • tinh
    tinh Altair Community Member
    edited April 2017

    Hi, you can use 

    set CompList [hm_complist name]

    or

    set CompList [hm_entitylist comps name] 

    the first will raise error if no comp found but the second won't

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2017

    I wrote this the other day to be able to click on the part and see what component it is

    (It is useful for checking part numbers of bits after importing a big assembly for example)

     

     

    #Select the component
    *createmarkpanel comps 1 'Select component:'

    #Get name of component
    set name [hm_getmark comps 1]
    *clearmarkall 1
    set comp_name [hm_getentityvalue comps $name name 1 -byid];


    tk_messageBox -message 'Name of Component: $comp_name'