Tcl Command Find Attached elements to an element

Altair Community Member
Updated by sanket_patil
Hello All,
I want to select attached elements to a particular element. What is tcl command for this selection?
Regards,
Sanket
Sort by:
1 - 7 of
71

Altair Community Member
OPUpdated by sanket_patil

New Altair Community Member
Updated by sandeepballiwar
Try something like this
set elemID 1;
*createmark elems 1 $elemID;
*appendmark elems 1 'by adjacent'
set lst_adjacent_elems [hm_getmark elems 1]

Altair Community Member
OPUpdated by sanket_patil
@sandeepballiwarThanks for the help.
What to do if i want to select all elements attached to element as above commands are giving adjacent elements only..should i need to use for loop here?
Regards,
Sanket

Altair Community Member
OPUpdated by sanket_patil
you use appendmark