diff --git a/src/ifcclash/ifcclash.py b/src/ifcclash/ifcclash.py index 9b9ea0a242..2db8a567b6 100644 --- a/src/ifcclash/ifcclash.py +++ b/src/ifcclash/ifcclash.py @@ -180,11 +180,11 @@ class IfcClasher: elements = selector.parse(data['ifc'], data['selector']) if data['mode'] == 'e': - for element in data['ifc'].by_type('IfcElement'): + for element in data['ifc'].by_type('IfcElement') + data['ifc'].by_type('IfcSpatialStructureElement'): if element in elements: data['ifc'].remove(element) elif data['mode'] == 'i': - for element in data['ifc'].by_type('IfcElement'): + for element in data['ifc'].by_type('IfcElement') + data['ifc'].by_type('IfcSpatialStructureElement'): if element not in elements: data['ifc'].remove(element)