pub fn attach_property_set(
tx: &mut Transaction,
model: &Model,
global_id: &str,
objects: &[EntityId],
property_set: EntityId,
) -> PropertyResult<EntityId>Expand description
Stage an IfcRelDefinesByProperties attaching a set to objects.
§Release
Bound to the model’s declared release (quantity/release.rs): the
record is laid out by attribute name from its table, and the
NoRelatedTypeObject check uses its inheritance. OwnerHistory is left
$, which IFC4 and IFC4X3 allow; IFC2X3 requires it, so an IFC2X3 model
is refused with PropertyError::AuthoringRequired. Use
attach_property_set_with_owner_history
there.
§Errors
Refuses an empty object list, and any object whose type is an
IfcTypeObject subtype. The schema states NoRelatedTypeObject:
a type carries properties through IfcRelDefinesByType instead, and
attaching here would be read by nothing that walks type properties.
Refuses a model that binds no single known release with
PropertyError::MultipleSchemas or
PropertyError::UnsupportedSchema, and an IFC2X3 model with
PropertyError::AuthoringRequired. Nothing is staged on an error.
Needs the model because the rule is stated over the related objects types, which only the committed model knows.