BIM: remove command now removes windows from walls

Fixes: #21551
This commit is contained in:
Furgo
2025-05-24 22:47:19 +02:00
committed by Yorik van Havre
parent 92a9b1ae54
commit df2e055183

View File

@@ -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