Skip to main content

associate_approval_with_owner_history

Function associate_approval_with_owner_history 

Source
pub fn associate_approval_with_owner_history(
    tx: &mut Transaction,
    model: &Model,
    draft: ApprovalAssociationDraft<'_>,
    owner_history: EntityId,
) -> ApprovalResult<EntityId>
Expand description

associate_approval with a caller-supplied IfcOwnerHistory, which IFC2X3 requires on every IfcRoot.

owner_history must be in the model or staged earlier on tx, and must be an IfcOwnerHistory; one is never invented here (build it with ifc-author). In IFC4 and IFC4X3 the reference fills the optional slot.

ยงErrors

Those of associate_approval except the IFC2X3 refusal, and ApprovalError::UnknownEntity for an owner_history that does not resolve or ApprovalError::AuthoringReferenceType for one that is not an IfcOwnerHistory. Nothing is staged on an error.