Element Type name

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

How can I get the element type name for each element of a component in Hypermesh using TCL?

when I  use hm_getconfigtypeincol comps elems $compname -byname. I am getting 21,6. How do I get CBUSH from those values?

 

 

Answers

  • tinh
    tinh Altair Community Member
    edited November 2015

    Hi

    Try hm_getcardimagename elems  $id

     

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2015

    Hi,

       hm_getcardimagename is only working for property and not for elements.

  • tinh
    tinh Altair Community Member
    edited November 2015

    oh, unlucky!

     

    you can try this, hoping it always returns solver name by ordered type

     

    lindex [hm_entityinfo configtypes elems spring] 6

     

    21 is config of spring and 6 is a solver type of spring

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2015

    Hi,

       Yea!!!!!!! Its working. Thank You