I have a bunch of concrete walls comming in from the constructors model.
For installation opening drawings (coordination) i make an element view (section view) of every wall in a new model. In retrieving the element solids i get an error. Somewhere in the model there seems to be an element that can not be converted into Dynamo Geometry. I want to skip those walls and continue, so the question is how to filter them out.
The geometry that gives me an error is reported here
The problem would be that Element.Geometry tends to also contain lines and what have you, so you’re then stuck filtering that list down anyway.
@m.rijsmus Are all the elements accounted for? That’s to say, are they all just “Wall” elements or are there other objects, empty entries, etc? You’re selecting an index range between 50 and 100 for a total of 51 elements - is that actually the amount of elements available?
There are more robust ways of making such selections that won’t give problems if the index is out of range
I assume the Element.Solids node then does return some solids but nulls or empty lists for the failing ones? I’d just use a List.Clean node to clean them up, though you’d still be faced with the resulting warning and missing walls, but at least it should let the rest of the graph evaluate as normal…
I narrowed it down to all walls that have a line as location line -skipping curved walls- and narrowed that down to all walls that have no unconnected height -skipping voids and in place walls and face walls- there are no Nulls left.