mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 05:57:57 +00:00
spatial.assign_container - support batching #4474
This commit is contained in:
@@ -41,7 +41,7 @@ class TestAssign(NewFile):
|
||||
ifcopenshell.api.run(
|
||||
"spatial.assign_container",
|
||||
tool.Ifc.get(),
|
||||
product=wall_element,
|
||||
products=[wall_element],
|
||||
relating_structure=tool.Ifc.get().by_type("IfcSite")[0],
|
||||
)
|
||||
subject.assign(wall_obj)
|
||||
@@ -196,7 +196,7 @@ class TestAssign(NewFile):
|
||||
ifcopenshell.api.run(
|
||||
"spatial.assign_container",
|
||||
tool.Ifc.get(),
|
||||
product=element,
|
||||
products=[element],
|
||||
relating_structure=tool.Ifc.get().by_type("IfcSite")[0],
|
||||
)
|
||||
ifcopenshell.api.run(
|
||||
@@ -236,7 +236,7 @@ class TestAssign(NewFile):
|
||||
ifcopenshell.api.run(
|
||||
"spatial.assign_container",
|
||||
tool.Ifc.get(),
|
||||
product=element,
|
||||
products=[element],
|
||||
relating_structure=tool.Ifc.get().by_type("IfcSite")[0],
|
||||
)
|
||||
bpy.context.scene.collection.objects.link(element_obj)
|
||||
@@ -255,7 +255,7 @@ class TestAssign(NewFile):
|
||||
ifcopenshell.api.run(
|
||||
"spatial.assign_container",
|
||||
tool.Ifc.get(),
|
||||
product=element,
|
||||
products=[element],
|
||||
relating_structure=tool.Ifc.get().by_type("IfcSite")[0],
|
||||
)
|
||||
bpy.context.scene.collection.objects.link(element_obj)
|
||||
|
||||
Reference in New Issue
Block a user