mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Fix non-existent name argument in add_si_unit docs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user