mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 10:23:41 +00:00
Fix mistake in 64f51d7
This commit is contained in:
@@ -66,7 +66,7 @@ def get_system_elements(system: ifcopenshell.entity_instance) -> list[ifcopenshe
|
|||||||
def get_element_systems(element: ifcopenshell.entity_instance) -> list[ifcopenshell.entity_instance]:
|
def get_element_systems(element: ifcopenshell.entity_instance) -> list[ifcopenshell.entity_instance]:
|
||||||
results = []
|
results = []
|
||||||
for rel in element.HasAssignments:
|
for rel in element.HasAssignments:
|
||||||
if rel.is_a("IfcRelAssignsToGroup"):
|
if not rel.is_a("IfcRelAssignsToGroup"):
|
||||||
continue
|
continue
|
||||||
group = rel.RelatingGroup
|
group = rel.RelatingGroup
|
||||||
if not group.is_a("IfcSystem") or group.is_a() in ("IfcStructuralAnalysisModel", "IfcZone"):
|
if not group.is_a("IfcSystem") or group.is_a() in ("IfcStructuralAnalysisModel", "IfcZone"):
|
||||||
|
|||||||
Reference in New Issue
Block a user