pub fn quantity_set(
model: &Model,
id: EntityId,
) -> Option<(QuantitySet, Vec<PropertyAnomaly>)>Expand description
Read an IfcElementQuantity by id, with schema-rule anomalies.
Returns None when id is absent or is not an IfcElementQuantity.
A member that cannot be represented is left out of quantities and
reported, never dropped silently: an absent id
(PropertyAnomaly::MissingMember), a list item that is not an entity
reference (PropertyAnomaly::MemberNotReference) or a member listed
again (PropertyAnomaly::DuplicateMember, read once). A simple
quantity with no value or a non-numeric one stays in quantities, in
file order, as Quantity::Unresolved, and is also reported as
PropertyAnomaly::QuantityValueMissing or
PropertyAnomaly::QuantityValueNotNumeric. Nested complex
quantities are followed along a tracked path; a cycle, over-deep nesting
or an exhausted member budget is reported as
PropertyAnomaly::ComplexCycle,
PropertyAnomaly::ComplexTooDeep or
PropertyAnomaly::ComplexBudgetExceeded.