mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
IfcZone: Allow to remove an object from an IfcZone
This commit is contained in:
committed by
Dion Moult
parent
10f56a7ae2
commit
fcb6971d4d
@@ -27,11 +27,12 @@ def get_system_elements(system):
|
|||||||
def get_element_systems(element):
|
def get_element_systems(element):
|
||||||
results = []
|
results = []
|
||||||
for rel in element.HasAssignments:
|
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",
|
"IfcSystem",
|
||||||
"IfcDistributionSystem",
|
"IfcDistributionSystem",
|
||||||
"IfcBuildingSystem",
|
"IfcBuildingSystem",
|
||||||
]:
|
"IfcZone",
|
||||||
|
):
|
||||||
results.append(rel.RelatingGroup)
|
results.append(rel.RelatingGroup)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user