ifcopenshell.api.unit.edit_monetary_unit#

Module Contents#

class ifcopenshell.api.unit.edit_monetary_unit.Usecase(file, unit=None, attributes=None)#

Edits the attributes of an IfcMonetaryUnit

For more information about the attributes and data types of an IfcMonetaryUnit, consult the IFC documentation.

Parameters
Returns

None

Return type

None

Example:

# If you do all your cost plans in Zimbabwean dollars then nobody
# knows how accurate the numbers are.
zwl = ifcopenshell.api.run("unit.add_monetary_unit", model, currency="ZWL")

# Ah who are we kidding
ifcopenshell.api.run("unit.edit_monetary_unit", model, unit=zwl, attributes={"Currency": "USD"})
execute(self)#