Skip to main content

resolved_quantities

Function resolved_quantities 

Source
pub fn resolved_quantities(
    model: &Model,
) -> (ResolvedQuantities, Vec<PropertyAnomaly>)
Expand description

Every quantity set applying to every object, precedence applied.

Sets are ordered by name (an unnamed one by #<id>), so output is deterministic. An object appears only with at least one set. A type object gets only the sets attached to it by the forbidden relationship (reported as PropertyAnomaly::TypeAttachedByRelationship); its own sets are in quantity_sets_by_object.

Anomalies are those of quantity_sets_by_object, those of resolving the type assignments, and PropertyAnomaly::DuplicateSetName for two same-named quantity sets on one owner. MissingDefinition, TypedTwice and the IfcRelDefinesByType anomalies appear in the lists of both this view and the property view.