From bdbcdef87fdbe43f5d299d9bb4bee017dd2fb150 Mon Sep 17 00:00:00 2001 From: Furgo <148809153+furgo16@users.noreply.github.com> Date: Sat, 24 May 2025 22:47:19 +0200 Subject: [PATCH] BIM: remove command now removes windows from walls Fixes: #21551 --- src/Mod/BIM/ArchCommands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/BIM/ArchCommands.py b/src/Mod/BIM/ArchCommands.py index 668a246644..a446f7b722 100644 --- a/src/Mod/BIM/ArchCommands.py +++ b/src/Mod/BIM/ArchCommands.py @@ -232,6 +232,8 @@ def removeComponents(objectsList,host=None): if o in a: a.remove(o) h.Objects = a + if hasattr(o, "Hosts") and Draft.getType(o) == "Window": + o.Hosts = [] def makeComponent(baseobj=None,name=None,delete=False): '''makeComponent([baseobj],[name],[delete]): creates an undefined, non-parametric BIM