pub fn property_template_checked(
model: &Model,
id: EntityId,
) -> Result<(PropertyTemplate, Vec<PropertyAnomaly>), TemplateError>Expand description
Read one property template bound to the release the model declares, reporting every malformed fact met on the way.
The same value as property_template, with a PropertyAnomaly for
each nested member left out (PropertyAnomaly::ComplexCycle,
PropertyAnomaly::ComplexTooDeep,
PropertyAnomaly::ComplexBudgetExceeded,
PropertyAnomaly::MissingMember, PropertyAnomaly::MemberNotReference,
PropertyAnomaly::DuplicateMember, PropertyAnomaly::NotATemplate),
each repeated template name (PropertyAnomaly::DuplicatePropertyName),
each record of the wrong arity (PropertyAnomaly::SlotCountMismatch)
and each attribute its declared type does not admit
(PropertyAnomaly::MalformedAttribute).
ยงErrors
TemplateError::Release or TemplateError::NoTemplates when the
model binds to no release that has templates (IFC2X3 has none);
TemplateError::MissingEntity or TemplateError::NotATemplate for
the entity itself.