mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
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
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user