mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
Add IFC4 support for functions get_connected_to and get_connected_from in util.system
This commit is contained in:
@@ -91,7 +91,6 @@ def get_connected_to(element):
|
|||||||
return results
|
return results
|
||||||
|
|
||||||
def get_connected_from(element):
|
def get_connected_from(element):
|
||||||
# Note: this code is for IFC2X3. IFC4 has a different approach.
|
|
||||||
results = []
|
results = []
|
||||||
for port in ifcopenshell.util.system.get_ports(element):
|
for port in ifcopenshell.util.system.get_ports(element):
|
||||||
for relConnectsPort in port.ConnectedFrom:
|
for relConnectsPort in port.ConnectedFrom:
|
||||||
|
|||||||
Reference in New Issue
Block a user