Skip to main content

add_measure_with_unit

Function add_measure_with_unit 

Source
pub fn add_measure_with_unit(
    tx: &mut Transaction,
    value: Value,
    unit: EntityId,
) -> PropertyResult<EntityId>
Expand description

Stage an IfcMeasureWithUnit.

A magnitude paired with the unit it is stated in. Both attributes are required: this is the entity IfcConversionBasedUnit points at for its conversion factor, and a factor missing either half states no conversion at all.

ยงErrors

Refuses a null value component; the schema types it as a required IfcValue. A bare literal is refused with PropertyError::ValueForm: IfcValue is a SELECT, so the value names its measure as a typed parameter.