layer.assign_layer - support batching #4474

This commit is contained in:
Andrej730
2024-04-08 14:30:30 +05:00
parent f34aef1ebf
commit 7ecec973dd
6 changed files with 68 additions and 20 deletions
@@ -54,7 +54,7 @@ class Usecase:
# And assign our wall representation item (in this example, there is
# only one item) to the layer.
ifcopenshell.api.run("layer.assign_layer", model, item=representation.Items[0], layer=layer)
ifcopenshell.api.run("layer.assign_layer", model, items=[representation.Items[0]], layer=layer)
# Let's undo it!
ifcopenshell.api.run("layer.unassign_layer", model, item=representation.Items[0], layer=layer)