pub fn add_property_set(
tx: &mut Transaction,
global_id: &str,
name: &str,
description: Option<&str>,
properties: &[(&str, EntityId)],
) -> PropertyResult<EntityId>Expand description
Stage an IfcPropertySet.
§Release
OwnerHistory is left $, which IFC4 and IFC4X3 allow and IFC2X3
forbids. This function takes no model, so it cannot see the release and
cannot refuse an IFC2X3 one; for IFC2X3 use
add_property_set_with_owner_history.
attach_property_set_with_owner_history
refuses to attach, in IFC2X3, a set written here.
§Errors
Refuses a blank name (ExistsName), an empty property list (HasProperties is required), and duplicate property names (UniquePropertyNames).
Properties are passed as (name, id) pairs rather than bare ids:
the uniqueness rule is stated over names, and a staged entity
cannot be read back out of the transaction to recover them.