Skip to main content

associate_profile_def

Function associate_profile_def 

Source
pub fn associate_profile_def(
    tx: &mut Transaction,
    global_id: &str,
    profile: EntityId,
    objects: &[EntityId],
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage an IfcRelAssociatesProfileDef: a profile associated with objects.

IFC4 and IFC4X3 only: it writes their layout and leaves OwnerHistory $, which IFC2X3 requires. In IFC2X3 use associate_profile_def_with_owner_history, which binds the model’s declared release.

§Errors

Refuses a malformed GlobalId, an empty object set, and the profile listed among its own objects.