Skip to main content

relate_resource_approval

Function relate_resource_approval 

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

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

§Errors

An empty or duplicated set; a relating target that is not an IfcApproval or a resource outside IfcResourceObjectSelect; a header binding no single verified release; and an IFC2X3 model, which declares no IfcResourceApprovalRelationship (EntityNotInSchema). Nothing is staged on an error.