Skip to main content

openbim_ifc_v0_1_model_convert_unit_value

Function openbim_ifc_v0_1_model_convert_unit_value 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_convert_unit_value( model: OpenbimIfcModel, value: f64, from: u64, to: u64, out_value: *mut f64, ) -> OpenbimIfcStatus
Expand description

Convert value from unit entity from to unit entity to of the model (an IfcSIUnit, IfcConversionBasedUnit or IfcDerivedUnit), written to out_value. MissingEntity; TypeMismatch for units of different dimensions; Unsupported for a monetary, context-dependent or offset unit; InvalidModel for a unit that does not resolve; UnsupportedSchema; FeatureDisabled.

ยงSafety

out_value valid for one write.