ifcopenshell.api.unit.edit_monetary_unit

Module Contents

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

Edits the attributes of an IfcMonetaryUnit

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

Parameters:
  • unit (ifcopenshell.entity_instance) – The IfcMonetaryUnit entity you want to edit

  • attributes (dict, optional) – a dictionary of attribute names and values.

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"})