From a0fd2a11cbe876045b22c2957c1eb21c0144d7ea Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 1 Aug 2023 22:43:40 +1000 Subject: [PATCH] Another minor documentation fix --- .../docs/ifcopenshell-python/geometry_creation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/docs/ifcopenshell-python/geometry_creation.rst b/src/ifcopenshell-python/docs/ifcopenshell-python/geometry_creation.rst index ee7d2bc4eb..09d976c953 100644 --- a/src/ifcopenshell-python/docs/ifcopenshell-python/geometry_creation.rst +++ b/src/ifcopenshell-python/docs/ifcopenshell-python/geometry_creation.rst @@ -658,7 +658,7 @@ responsibility to make sure the geometry is correct. # It's now our responsibility to create a compatible representation. # Notice how our thickness of 0.118 must equal .013 + .092 + .013 from our type - body = ifcopenshell.util.representation.get_representation(element, "Model", "Body") + body = ifcopenshell.util.representation.get_context(model, "Model", "Body", "MODEL_VIEW") representation = ifcopenshell.api.run("geometry.add_wall_representation", model, context=body, length=5, height=3, thickness=0.118) @@ -714,7 +714,7 @@ responsibility to make sure the geometry is correct. # It's now our responsibility to create a compatible representation. # Notice how we reuse our profile instead of creating a new profile. - body = ifcopenshell.util.representation.get_representation(element, "Model", "Body") + body = ifcopenshell.util.representation.get_context(model, "Model", "Body", "MODEL_VIEW") representation = run("geometry.add_profile_representation", model, context=body, profile=hea100, depth=1) # Assign our new body geometry back to our beam