mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 22:16:41 +00:00
See #3069. Continued refactoring to not rely on users_collection[0].
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user