From fa92d3bd590154de273b5b0fbfca8524ed00822b Mon Sep 17 00:00:00 2001 From: dylcos <115719168+dylcos@users.noreply.github.com> Date: Tue, 24 Sep 2024 18:43:38 +0100 Subject: [PATCH] Update code_examples.rst Replaced "product=wall" with "products=[wall]" in: # Place our wall in the ground floor ifcopenshell.api.spatial.assign_container(model, relating_structure=storey, products=[wall]) As code example fails otherwise --- .../docs/ifcopenshell-python/code_examples.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/docs/ifcopenshell-python/code_examples.rst b/src/ifcopenshell-python/docs/ifcopenshell-python/code_examples.rst index 90b8806057..94e45ba295 100644 --- a/src/ifcopenshell-python/docs/ifcopenshell-python/code_examples.rst +++ b/src/ifcopenshell-python/docs/ifcopenshell-python/code_examples.rst @@ -263,7 +263,7 @@ Create a simple model from scratch ifcopenshell.api.geometry.assign_representation(model, product=wall, representation=representation) # Place our wall in the ground floor - ifcopenshell.api.spatial.assign_container(model, relating_structure=storey, product=wall) + ifcopenshell.api.spatial.assign_container(model, relating_structure=storey, products=[wall]) # Write out to a file model.write("/home/dion/model.ifc")