Skip to main content

relate_approvals

Function relate_approvals 

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

Validate and stage one approval-to-approval relationship in the model’s declared release.

IFC2X3 declares a single RelatedApproval and a required Name; IFC4 and IFC4X3 a set of RelatedApprovals and an optional Name.

§Errors

An empty, duplicated or self-referencing set; a target that is not an IfcApproval; a header binding no single verified release; in IFC2X3 more than one related approval (AuthoringValueType) or no name (AuthoringRequired). Nothing is staged on an error.