pub fn add_complex_property_template(
tx: &mut Transaction,
global_id: &str,
name: Option<&str>,
usage: (Option<&str>, Option<&str>),
templates: &[(&str, EntityId)],
) -> PropertyResult<EntityId>Expand description
Stage an IfcComplexPropertyTemplate.
Takes no model, so it cannot refuse an IFC2X3 model, which declares no
templates. Use add_complex_property_template_with_owner_history to
write against the model’s declared release.
§Errors
Refuses a malformed GlobalId, an empty template set (the attribute
is SET [1:?] when present), a duplicate template reference, and a
TemplateType outside its enumeration.
NoSelfReference needs no check: Transaction::create allocates
the id as it stages the entity, so a caller cannot hold that id in
order to pass it as one of its own children.
UniquePropertyNames is stated over the templates’ names, which a
staged entity cannot be read back to supply. Callers pass
(name, id) pairs, matching add_property_set.