Skip to main content

relate_resource_constraint

Function relate_resource_constraint 

Source
pub fn relate_resource_constraint(
    tx: &mut Transaction,
    model: &Model,
    draft: ResourceConstraintDraft<'_>,
) -> ConstraintResult<EntityId>
Expand description

Validate and stage one resource-level constraint relationship in the model’s declared release.

§Errors

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