Fix bug where aggregates cause drawing generation to fail

This commit is contained in:
Dion Moult
2020-12-03 21:52:17 +11:00
parent 8bb157ce0a
commit 679c2bef02
@@ -652,6 +652,8 @@ class IfcCutter:
for element in ifc_file.by_type("IfcElement"):
annotation_representation = None
box_representation = None
if not element.Representation:
continue # This can occur for aggregates
for representation in element.Representation.Representations:
if (
representation.ContextOfItems.ContextType == "Plan"