select comp through an element

Beta
Beta New Altair Community Member
edited October 2020 in Community Q&A

Hi,

 

I am looking for a solution to get the comp id from a specific element.

 

Is there any way I can automatically get the component id from an element id that belongs to the comp ??

 

Thank you!

Answers

  • vipin_22401
    vipin_22401 Altair Community Member
    edited May 2018

    Hi Toan,

     

    You can use the hm_getvalue command

    set comp_id [hm_getvalue element id=1776 dataname=collector]

  • Beta
    Beta New Altair Community Member
    edited May 2018

    Hi Vipin,

     

    Thank you very much.

     

    I missed collector data name :))