pub fn create_monetary_unit(
tx: &mut Transaction,
model: &Model,
currency: &str,
) -> CostAuthoringResult<EntityId>Expand description
Stage an IfcMonetaryUnit in the model’s declared release.
IFC4 and IFC4X3 declare Currency an IfcLabel, written as given. The
reader resolves a file’s currency by matching this text, which is why a
blank one is refused rather than written: it would leave every cost
value denominated in nothing. IFC2X3 declares an IfcCurrencyEnum: the
label must name one of its enumerators and is written as that
enumerator, never as text.
§Errors
A blank currency; a header binding no single verified release
(MultipleSchemas, UnsupportedSchema); and in IFC2X3 a currency
IfcCurrencyEnum does not list (AuthoringValueType).