From 05bf2b82d2091957dbce9568c070d399847da1a8 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 18 Mar 2026 10:21:12 +0500 Subject: [PATCH] system.disconnect_port - fix missing flow direction reset (bbda8d2) --- .../ifcopenshell/api/system/disconnect_port.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/api/system/disconnect_port.py b/src/ifcopenshell-python/ifcopenshell/api/system/disconnect_port.py index b6b72a192b..7ae790e753 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/system/disconnect_port.py +++ b/src/ifcopenshell-python/ifcopenshell/api/system/disconnect_port.py @@ -65,6 +65,8 @@ def disconnect_port(file: ifcopenshell.file, port: ifcopenshell.entity_instance) rels += port.ConnectedFrom or () for rel in rels: + rel.RelatingPort.FlowDirection = None + rel.RelatedPort.FlowDirection = None history = rel.OwnerHistory file.remove(rel) if history: