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)