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 : IfcLabelIn 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:
PropertyError::AuthoringInvalid: a blank currency, or in IFC2X3 a currencyIfcCurrencyEnumdoes not list. It is never written as text there, nor mapped to another enumerator.PropertyError::MultipleSchemasandPropertyError::UnsupportedSchema: the header binds no single release this writer is verified against.