Skip to main content

assign_to_control_with_owner_history

Function assign_to_control_with_owner_history 

Source
pub fn assign_to_control_with_owner_history(
    tx: &mut Transaction,
    model: &Model,
    draft: ControlAssignmentDraft<'_>,
    owner_history: EntityId,
) -> ControlResult<EntityId>
Expand description

assign_to_control in model’s declared release, with a caller-supplied IfcOwnerHistory, which IFC2X3 requires (#202).

The release is bound from FILE_SCHEMA (none binds IFC4); in IFC4 and IFC4X3 the record is that of assign_to_control with the reference in the optional slot. The owner history is never invented.

§Errors

Those of assign_to_control except the IFC2X3 refusal, and the release and owner-history refusals of create_control_with_owner_history. Nothing is staged on an error.