IfcZone: Allow to remove an object from an IfcZone

This commit is contained in:
CyrilWaechter
2022-11-20 17:48:30 +01:00
parent ae0f2a9de6
commit 8386aa0e0a
@@ -27,11 +27,12 @@ def get_system_elements(system):
def get_element_systems(element):
results = []
for rel in element.HasAssignments:
if rel.is_a("IfcRelAssignsToGroup") and rel.RelatingGroup.is_a() in [
if rel.is_a("IfcRelAssignsToGroup") and rel.RelatingGroup.is_a() in (
"IfcSystem",
"IfcDistributionSystem",
"IfcBuildingSystem",
]:
"IfcZone",
):
results.append(rel.RelatingGroup)
return results