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

Best Answer

  • Adriano A. Koga
    Adriano A. 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 A. Koga
    Adriano A. 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!