mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
spatial.assign_container - support batching #4474
This commit is contained in:
@@ -190,7 +190,10 @@ class IFC_Sv_write_file(bpy.types.Operator):
|
||||
for element in elements:
|
||||
if element not in elements_in_buildings:
|
||||
ifcopenshell.api.run(
|
||||
"spatial.assign_container", file, product=element, relating_structure=file.by_type("IfcBuilding")[0]
|
||||
"spatial.assign_container",
|
||||
file,
|
||||
products=[element],
|
||||
relating_structure=file.by_type("IfcBuilding")[0],
|
||||
)
|
||||
|
||||
for building in file.by_type("IfcBuilding"):
|
||||
|
||||
Reference in New Issue
Block a user