Filter list by element type


#1

I have a list of objects of different type e.g. {line,surface,surface,line}
Is there a way to scan the list and return indices of surface elements (1,2) and line elements (0,3)?


#2

Hi @Ilya_Kirichenko

Here is one of the possible way.


#3

Thank You. It works. Hoped there is a direct way to determine element type without converting to string.


#4


#5

A post was split to a new topic: Filter Views by View Type


#6