exclude objects without a shape in IFCOpenshell
by iterating all the objects of a specific class I want to exclude those that do not have a geometry but the geom.create_shape() method slows down the code too much, which geom.settings() settings should I use to have better performance?
Tagged:
Comments
Can you show some examples of objects without a shape you want to avoid?
Perhaps you can skip objects based on whether they have a representaton of some context.
Of course, there are elements exported from Civil3D, classified as BuildingElementProxy but without geometry. as you can see from the image:

Do they have representation in ifc? Or maybe representation of some context is missing?
hmm actually not, could I filter them using this value?

sure, you can skip the ones that has no representation at all (
element.Representation is None
).