Skip to main content

add_context_dependent_unit

Function add_context_dependent_unit 

Source
pub fn add_context_dependent_unit(
    tx: &mut Transaction,
    dimensions: EntityId,
    unit_type: &str,
    name: &str,
) -> PropertyResult<EntityId>
Expand description

Stage an IfcContextDependentUnit.

A unit with no SI conversion, named by the project that defines it. Unlike IfcSIUnit, Dimensions is a real attribute here rather than a derived one, so the caller supplies it.

ยงErrors

Refuses a blank name or a malformed UnitType token.