pub fn exact_project_unit(
model: &Model,
unit_type: &str,
) -> Result<EntityId, ExactUnitError>Expand description
The one unit of unit_type (an IfcUnitEnum or IfcDerivedUnitEnum
constant such as LENGTHUNIT) the single project assigns, unresolved.
ยงErrors
ExactUnitError::NoProject, ExactUnitError::MultipleProjects,
ExactUnitError::NoProjectUnit when the assignment has none of that
type, ExactUnitError::DuplicateProjectUnit,
ExactUnitError::DamagedRecord, and the structural refusals of
exact_unit.