Openings locations are fixed relative to slab profile editing

This commit is contained in:
Dion Moult
2022-10-05 16:39:10 +11:00
parent ac4e2f142b
commit 1590e8c0e7
6 changed files with 30 additions and 8 deletions
@@ -306,3 +306,12 @@ class TestSync(NewFile):
col.objects.link(obj)
subject.sync(obj)
assert ifcopenshell.util.element.get_aggregate(element).is_a("IfcBuilding")
def test_openings_are_never_contained(self):
bpy.ops.bim.create_project()
obj = bpy.data.objects.new("Object", None)
element = tool.Ifc.get().createIfcOpeningElement()
tool.Ifc.link(element, obj)
bpy.data.collections.get("IfcSite/My Site").objects.link(obj)
subject.sync(obj)
assert ifcopenshell.util.element.get_container(element) is None