From 8386aa0e0ad326b1b3737817e3ef1afde6f861d6 Mon Sep 17 00:00:00 2001 From: CyrilWaechter Date: Sun, 20 Nov 2022 17:48:30 +0100 Subject: [PATCH] IfcZone: Allow to remove an object from an IfcZone --- src/ifcopenshell-python/ifcopenshell/util/system.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/system.py b/src/ifcopenshell-python/ifcopenshell/util/system.py index 0b3e50a469..91dc441b32 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/system.py +++ b/src/ifcopenshell-python/ifcopenshell/util/system.py @@ -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