Fix bug where annotations were assumed to only be part of one drawing group

This commit is contained in:
Dion Moult
2023-01-27 08:38:00 +11:00
parent 41fdd77bfa
commit 6c2a4711da
+1 -1
View File
@@ -1736,7 +1736,7 @@ class IfcImporter:
def get_drawing_group(self, element):
for rel in element.HasAssignments or []:
if rel.is_a("IfcRelAssignsToGroup"):
if rel.is_a("IfcRelAssignsToGroup") and rel.RelatingGroup.ObjectType == "DRAWING":
return rel.RelatingGroup
def get_element_matrix(self, element):