Skip to content

Commit 679c2be

Browse files
committed
Fix bug where aggregates cause drawing generation to fail
1 parent 8bb157c commit 679c2be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ifcblenderexport/blenderbim/bim/cut_ifc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,8 @@ def get_annotation(self):
652652
for element in ifc_file.by_type("IfcElement"):
653653
annotation_representation = None
654654
box_representation = None
655+
if not element.Representation:
656+
continue # This can occur for aggregates
655657
for representation in element.Representation.Representations:
656658
if (
657659
representation.ContextOfItems.ContextType == "Plan"

0 commit comments

Comments
 (0)