See #3069. Continued refactoring to not rely on users_collection[0].

This commit is contained in:
Dion Moult
2023-06-01 21:18:32 +10:00
parent 7020caf682
commit 971e508e3d
9 changed files with 61 additions and 71 deletions
@@ -331,6 +331,8 @@ class TestSync(NewFile):
bpy.ops.bim.create_project()
obj = bpy.data.objects.new("IfcBuildingStorey/Name", None)
col = bpy.data.collections.new("IfcBuildingStorey/Name")
obj.BIMObjectProperties.collection = col
col.BIMCollectionProperties.obj = obj
element = tool.Ifc.get().createIfcBuildingStorey(Name="Name")
tool.Ifc.link(element, obj)
bpy.data.collections.get("IfcBuilding/My Building").children.link(col)