Skip to main content

add_property_set_template

Function add_property_set_template 

Source
pub fn add_property_set_template(
    tx: &mut Transaction,
    global_id: &str,
    name: &str,
    applicable_entity: Option<&str>,
    templates: &[EntityId],
) -> PropertyResult<EntityId>
Expand description

Stage an IfcPropertySetTemplate.

Declares what a property set should contain before any instance exists: which properties, of what measure, on which entities.

Takes no model, so it cannot refuse an IFC2X3 model, which declares no templates. Use add_property_set_template_with_owner_history to write against the model’s declared release.

§Errors

Refuses a malformed GUID and an empty template list, which the schema types as SET [1:?].