Skip to main content

template_of_set

Function template_of_set 

Source
pub fn template_of_set(model: &Model) -> BTreeMap<EntityId, Vec<EntityId>>
Expand description

Which templates define each property set, via IfcRelDefinesByTemplate.

A set with no entry is untemplated, which is normal: templates describe custom property sets and standard Psets rely on the published catalogue instead.

Each set maps to EVERY template defining it, ascending by id and without repeats. IfcPropertySetDefinition.IsDefinedBy is SET [0:?] OF IfcRelDefinesByTemplate, so several templates are legal. Before 0.4 this returned one template per set, and silently dropped the rest (#60).