Filter geometry list to only show solids

Probably a dumb question. This cant be the best way to filter the list to only contain solid geometry right?

Hi @Garbage_Collector you can try remove if not…

1 Like

Thank you!

I was looking for how to compare geometry to a solid, your codeblock shows what to use instead of a string heh :slight_smile:

1 Like

I was too fast…

For some reason it returns an empty list

Edit : I just now see the .Dictionary in there… It works :slight_smile:

1 Like

yeps thats the thing :wink:

1 Like

You might be able to just use ‘Solid’ depending on how your Dynamo environment is set up (i.e. Dynamo for Civil 3D has a “Solid” class as well so you get namespace collision issues).

2 Likes

That’s good to know thank you!

1 Like

yeah you can always find out with use objectype node i guess :wink: :wink:

2 Likes

Often the full namespace (Autodesk.DesignScript.Geometry.YourGeometryTypeHere) is good to include as it will help the graph to scale - you don’t know how the next user’s environment is configured.

1 Like