Skip to main content

associate_library

Function associate_library 

Source
pub fn associate_library(
    tx: &mut Transaction,
    model: &Model,
    draft: AssociationDraft<'_>,
    target: EntityId,
) -> ClassificationResult<EntityId>
Expand description

Validate and stage an IfcRelAssociatesLibrary linking draft.related_objects to target, with OwnerHistory unset.

ยงErrors

A target that is not an IfcLibrarySelect, the shared association preconditions of associate_classification, and an IFC2X3 model (use associate_library_with_owner_history). Nothing is staged on an error.