get the adjacent component...

Pandurang
Pandurang Altair Community Member
edited October 2020 in Community Q&A

Hi All,

 

I have BIW Model. by selecting one component , want to get its adjacent components....

Is there any way to do this automatically....

@tinh

 

Regards,

PD

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited May 2018

    Hi

    are they connected with anything?

  • Pandurang
    Pandurang Altair Community Member
    edited May 2018

    yes

  • tinh
    tinh Altair Community Member
    edited May 2018

    So you can use *createmark elems 1 'by comp id' $FirstCompId

    and then use *appendmark elems 1 'by adjacent' to find adjacent elems => get comp ids of those adjacents elems

  • Pandurang
    Pandurang Altair Community Member
    edited May 2018

    Hi Tinh,

    i am getting only rigid link component here ...may be because 2 or more comps are connected by rigid link...

    i want to get that comps adjacent to selected one , connected by rigid links...

    selected and adjacent have gap in between....

    how can i resolve this?

    Thanks 

    PD

  • tinh
    tinh Altair Community Member
    edited May 2018

    Hi

    maybe, find adjacent elems of each rigidlink and then get their comps

    then using lsort -unique to simplify the list