BIM: Set opening name - fixes #16948

This commit is contained in:
Yorik van Havre
2024-11-25 13:16:34 +01:00
committed by Chris Hennes
parent 8ba34888fd
commit 8fb4be6108

View File

@@ -1213,6 +1213,7 @@ def create_relationship(old_obj, obj, parent, element, ifcfile):
tempface, tempobj = get_subvolume(old_obj)
if tempobj:
opening = create_product(tempobj, parent, ifcfile, "IfcOpeningElement")
set_attribute(ifcfile, product, "Name", "Opening")
old_obj.Document.removeObject(tempobj.Name)
if tempface:
old_obj.Document.removeObject(tempface.Name)