get closest node in particular component

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

I want to select closest node in particular component.

But when i use 'hm_getclosestnode' command it selects the closest node in the whole model.

can any one tel me the command for this 

Tagged:

Answers

  • tinh
    tinh Altair Community Member
    edited March 2016

    Hi,

    mark elems of the component first:

    *createmark elems 1 'by comp id' $comp_id

    set closest_node [hm_getclosestnode $x $y $z 1 0]

    *clearmark elems 1