root.copy_class to remove connections from previously connected ports

This commit is contained in:
Andrej730
2023-08-15 10:35:36 +05:00
parent f523870b57
commit fafcd5dfca
2 changed files with 9 additions and 0 deletions
@@ -111,6 +111,7 @@ class Usecase:
for port in new_ports:
ifcopenshell.api.run("system.unassign_port", self.file, element=from_element, port=port)
ifcopenshell.api.run("system.disconnect_port", self.file, port=port)
matrix = ifcopenshell.util.placement.get_local_placement(port.ObjectPlacement)
ifcopenshell.api.run(
"geometry.edit_object_placement",