IfcZone: Allow to remove an object from an IfcZone

This commit is contained in:
CyrilWaechter
2022-11-20 17:48:30 +01:00
committed by Dion Moult
parent 10f56a7ae2
commit fcb6971d4d
@@ -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