mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
layer.assign_layer - support batching #4474
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user