pub fn add_monetary_unit(
tx: &mut Transaction,
draft: MonetaryUnitDraft<'_>,
) -> PropertyResult<EntityId>👎Deprecated:
writes IFC4 text even in IFC2X3; use create_monetary_unit, which binds the model’s release (#232)
Expand description
Stage an IfcMonetaryUnit as IFC4 text, whatever the model’s release.
Takes no model, so it cannot know the release, and always writes
Currency as an IfcLabel. That is the IFC4, IFC4X1, IFC4X2 and
IFC4X3 form; in IFC2X3 Currency is an IfcCurrencyEnum, so the
record this writes there is schema-invalid.
§Errors
PropertyError::AuthoringInvalid for a blank currency.