Filter Geometries From List

Hello!
I am trying to do a very easy thing (i Thoght), but actually i have no idea how to manage this problem.
I have a list and would like to get all elements from that list apart of numbers. I mean a would like to have just geometrical elemnts. Do you think it is possible? Any Idea? Many thanks :slight_smile:

Considering your list has different types of geometries, you can try to check if the element’s type name contains the “Geometry” string and filter the list by the boolean result.

If you are only looking to filtering out numbers, the same principle applies but looking for Int32 and/or Double. :slight_smile:

3 Likes

Many Thanks! It works :slight_smile: