diff --git a/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py b/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py index ade4dbc41b..a85a4ee5a0 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py +++ b/src/ifcopenshell-python/ifcopenshell/api/project/append_asset.py @@ -86,7 +86,7 @@ def append_asset( # Assign units for our example library unit = ifcopenshell.api.unit.add_si_unit(library, - unit_type="LENGTHUNIT", name="METRE", prefix="MILLI") + unit_type="LENGTHUNIT", prefix="MILLI") ifcopenshell.api.unit.assign_unit(library, units=[unit]) # Let's create a single asset of a 200mm thick concrete wall diff --git a/src/ifcopenshell-python/ifcopenshell/api/project/assign_declaration.py b/src/ifcopenshell-python/ifcopenshell/api/project/assign_declaration.py index ab8d97bea9..7333282746 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/project/assign_declaration.py +++ b/src/ifcopenshell-python/ifcopenshell/api/project/assign_declaration.py @@ -65,7 +65,7 @@ def assign_declaration( # Assign units for our example library unit = ifcopenshell.api.unit.add_si_unit(library, - unit_type="LENGTHUNIT", name="METRE", prefix="MILLI") + unit_type="LENGTHUNIT", prefix="MILLI") ifcopenshell.api.unit.assign_unit(library, units=[unit]) # Let's create a single asset of a 200mm thick concrete wall