ifcopenshell.api.unit.edit_monetary_unit
¶
Module Contents¶
- ifcopenshell.api.unit.edit_monetary_unit.edit_monetary_unit(file: ifcopenshell.file, unit: ifcopenshell.entity_instance, attributes: dict[str, Any]) 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) – 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.unit.add_monetary_unit(model, currency="ZWL") # Ah who are we kidding ifcopenshell.api.unit.edit_monetary_unit(model, unit=zwl, attributes={"Currency": "USD"})