🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

selection of particular displayed Elements.

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

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.

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "tinh"
    Altair Community Member
    Updated by tinh

    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]

    User: "Altair Forum User"
    Altair Employee
    OP
    Updated by Altair Forum User

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