Documentation example fixes where I forgot to give things with representations a placement

This commit is contained in:
Dion Moult
2023-01-04 16:09:04 +11:00
parent 981b6cd65f
commit 9e45435024
6 changed files with 16 additions and 15 deletions
@@ -53,6 +53,7 @@ class Usecase:
context=body, length=5, height=3, thickness=0.2)
ifcopenshell.api.run("geometry.assign_representation", model,
product=wall, representation=representation)
ifcopenshell.api.run("geometry.edit_object_placement", model, product=wall)
# Now let's create a layer that contains walls
layer = ifcopenshell.api.run("layer.add_layer", model, Name="AI-WALL")
@@ -45,6 +45,7 @@ class Usecase:
context=body, length=5, height=3, thickness=0.2)
ifcopenshell.api.run("geometry.assign_representation", model,
product=wall, representation=representation)
ifcopenshell.api.run("geometry.edit_object_placement", model, product=wall)
# Now let's create a layer that contains walls
layer = ifcopenshell.api.run("layer.add_layer", model, Name="AI-WALL")