mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 08:33:10 +00:00
Fix bug where aggregates cause drawing generation to fail
This commit is contained in:
@@ -652,6 +652,8 @@ class IfcCutter:
|
|||||||
for element in ifc_file.by_type("IfcElement"):
|
for element in ifc_file.by_type("IfcElement"):
|
||||||
annotation_representation = None
|
annotation_representation = None
|
||||||
box_representation = None
|
box_representation = None
|
||||||
|
if not element.Representation:
|
||||||
|
continue # This can occur for aggregates
|
||||||
for representation in element.Representation.Representations:
|
for representation in element.Representation.Representations:
|
||||||
if (
|
if (
|
||||||
representation.ContextOfItems.ContextType == "Plan"
|
representation.ContextOfItems.ContextType == "Plan"
|
||||||
|
|||||||
Reference in New Issue
Block a user