mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
root.copy_class to remove connections from previously connected ports
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user