mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Fix bug where annotations were assumed to only be part of one drawing group
This commit is contained in:
@@ -1736,7 +1736,7 @@ class IfcImporter:
|
|||||||
|
|
||||||
def get_drawing_group(self, element):
|
def get_drawing_group(self, element):
|
||||||
for rel in element.HasAssignments or []:
|
for rel in element.HasAssignments or []:
|
||||||
if rel.is_a("IfcRelAssignsToGroup"):
|
if rel.is_a("IfcRelAssignsToGroup") and rel.RelatingGroup.ObjectType == "DRAWING":
|
||||||
return rel.RelatingGroup
|
return rel.RelatingGroup
|
||||||
|
|
||||||
def get_element_matrix(self, element):
|
def get_element_matrix(self, element):
|
||||||
|
|||||||
Reference in New Issue
Block a user