pub fn property_template(
model: &Model,
id: EntityId,
) -> Option<PropertyTemplate>Expand description
Read one property template by id.
None when the entity is absent or is neither an
IfcSimplePropertyTemplate nor an IfcComplexPropertyTemplate in the
release the header declares (the IFC4 ADD2 TC1 table when it declares
none it bundles). Until #108 every entity was read with the simple
template’s layout, so a complex template reported its UsageName as its
TemplateType and any other entity read as a template.
Nested templates the traversal refuses are left out without saying so;
use property_template_checked to have each one reported.