From 25bd94e84a8dbfc692d6bffd362d5407fcca174c Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Tue, 28 Nov 2023 23:28:38 +0000 Subject: [PATCH] minor documentation typo fix --- .../ifcopenshell/api/material/assign_profile.py | 2 +- .../ifcopenshell/api/material/edit_profile_usage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/assign_profile.py b/src/ifcopenshell-python/ifcopenshell/api/material/assign_profile.py index c994f41f53..ea3ed7610a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/assign_profile.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/assign_profile.py @@ -74,7 +74,7 @@ class Usecase: product=beam, type="IfcMaterialProfileSetUsage") # Let's give a 1000mm long beam body representation. - body = ifcopenshell.api.run("geoemtry.add_profile_representation", + body = ifcopenshell.api.run("geometry.add_profile_representation", context=body_context, profile=hea100, depth=1000) ifcopenshell.api.run("geometry.assign_representation", model, product=beam, representation=body) ifcopenshell.api.run("geometry.edit_object_placement", model, product=beam) diff --git a/src/ifcopenshell-python/ifcopenshell/api/material/edit_profile_usage.py b/src/ifcopenshell-python/ifcopenshell/api/material/edit_profile_usage.py index 3a7c7493cb..aace67e3d0 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/material/edit_profile_usage.py +++ b/src/ifcopenshell-python/ifcopenshell/api/material/edit_profile_usage.py @@ -78,7 +78,7 @@ class Usecase: product=beam, type="IfcMaterialProfileSetUsage") # Let's give a 1000mm long beam body representation. - body = ifcopenshell.api.run("geoemtry.add_profile_representation", + body = ifcopenshell.api.run("geometry.add_profile_representation", context=body_context, profile=hea100, depth=1000) ifcopenshell.api.run("geometry.assign_representation", model, product=beam, representation=body) ifcopenshell.api.run("geometry.edit_object_placement", model, product=beam)