Fix non-existent name argument in add_si_unit docs

This commit is contained in:
Andrej730
2025-01-22 17:17:31 +05:00
parent 083aa4da85
commit b812d21282
2 changed files with 2 additions and 2 deletions
@@ -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
@@ -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