spatial.assign_container - support batching #4474

This commit is contained in:
Andrej730
2024-04-05 14:57:11 +05:00
parent 78abca16e6
commit 109787d869
32 changed files with 157 additions and 119 deletions
+1 -1
View File
@@ -347,6 +347,6 @@ for i in range(0, 4):
location = np.eye(4)
location[1][3] += i * 1
ifcopenshell.api.run("geometry.edit_object_placement", model, product=wall, matrix=location)
ifcopenshell.api.run("spatial.assign_container", model, relating_structure=storey, product=wall)
ifcopenshell.api.run("spatial.assign_container", model, relating_structure=storey, products=[wall])
model.write(os.path.join(outdir, "library", "sample.ifc"))