pub fn associate_material(
tx: &mut Transaction,
model: &Model,
draft: MaterialAssignmentDraft<'_>,
) -> MaterialResult<EntityId>Expand description
Stage a product/type material association after validating the IFC GlobalId,
non-empty relation end, and IfcMaterialSelect branch.
OwnerHistory is left unset. IFC2X3 requires it, so an IFC2X3 model is
refused with MaterialError::AuthoringRequired; use
associate_material_with_owner_history there.
§Errors
Refuses a malformed GlobalId, an empty or duplicated RelatedObjects,
and a RelatingMaterial that is no IfcMaterialSelect member of the
model’s release.