pub fn associate_classification(
tx: &mut Transaction,
model: &Model,
draft: AssociationDraft<'_>,
target: EntityId,
) -> ClassificationResult<EntityId>Expand description
Validate and stage an IfcRelAssociatesClassification linking
draft.related_objects to target, with OwnerHistory unset.
§Errors
A target the release’s RelatingClassification does not accept
(IfcClassificationSelect; in IFC2X3 IfcClassificationNotationSelect,
which admits a reference or notation but no IfcClassification); a
malformed GlobalId; an empty, duplicated or non-definition
RelatedObjects; an IFC2X3 model, which requires OwnerHistory
(AuthoringRequired: use
associate_classification_with_owner_history); and a header binding
no single known release. Nothing is staged on an error.