Skip to main content

create_monetary_unit

Function create_monetary_unit 

Source
pub fn create_monetary_unit(
    tx: &mut Transaction,
    model: &Model,
    draft: MonetaryUnitDraft<'_>,
) -> PropertyResult<EntityId>
Expand description

Stage an IfcMonetaryUnit in model’s declared release.

Currency changed type between releases:

IFC2X3 TC1                         Currency : IfcCurrencyEnum
IFC4, IFC4X1, IFC4X2, IFC4X3 ADD2  Currency : IfcLabel

In IFC2X3 the currency must name an IfcCurrencyEnum enumerator (matched ignoring ASCII case) and is written as that token, .EUR.; elsewhere it is written as the text given, 'EUR'. The release binds as for create_quantity: IFC2X3, IFC4 and IFC4X3, with an empty header binding IFC4.

§Errors

Refused before anything is staged: