selection of particular displayed Elements.

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

hi,

 

i want to select the displayed elements of special config & want to store that data in one variable then i want to check in control structure condition that the selected element are of  that special config.

 

for that i had written some code but the problem occurring is that  while selecting the elements the code is selecting the all displayed & non-displayed elements 

and want to know the code line how to evaluate the selected config elements.

 

# code

 

hm_createmark elements 1 'by config type' 'tria3 quad4'  

set 2D [hm_getmark elements 2]

 

####
 

 

want to know the code line which an evaluate that the defined variable is having tria & quad elements.

 

please let me know if any one is having any sort of solution.

Answers

  • tinh
    tinh Altair Community Member
    edited June 2013

    Hi

    you can control selected elements by *intersectionmark, ex:

    *createmark elems 1 'by config' tria3 quad4

    *createmark elems 2 displayed

    *markintersection elems 1 elems 2

    set Displayed2DElems [hm_getmark elems 1]

     

    If you want to check whether elems in variable 'ElemList' have tria and quad:

    eval *createmark elems 1 $ElemList

    *createmark elems 2 'by config' tria3 quad4

    *markintersection elems 1 elems 2

    set ElemList2D [hm_getmark elems 1]

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2013

    thanks tinh image/emoticons/default_smile.png' alt=':)' srcset='/emoticons/smile@2x.png 2x' width='20' height='20'>