hypermesh script for element associate comps

shiucomp5
shiucomp5 Altair Community Member
edited April 9 in Community Q&A

Hello to all the experienced programmers,

I have a question regarding secondary development.

I know the ID of an element, but how can I determine which component this element belongs to?

this my script now,but now response!!

set id 202 eval *createmark comps 1 "by element id" $id hm_highlightmark comps 1 h
Tagged:

Best Answer

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited April 9 Answer ✓

    use this syntax:

    set id 202

    hm_getvalue elems id=$id dataname=component

    102

     

    hm_getvalue elems id=$id dataname=component.name

    LATERAL Partition 7.1

Answers

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited April 9 Answer ✓

    use this syntax:

    set id 202

    hm_getvalue elems id=$id dataname=component

    102

     

    hm_getvalue elems id=$id dataname=component.name

    LATERAL Partition 7.1

  • shiucomp5
    shiucomp5 Altair Community Member
    edited April 9

    use this syntax:

    set id 202

    hm_getvalue elems id=$id dataname=component

    102

     

    hm_getvalue elems id=$id dataname=component.name

    LATERAL Partition 7.1

    really thanks a lot!!!!!!

    love you!