Skip to main content

assign_to_process

Function assign_to_process 

Source
pub fn assign_to_process(
    tx: &mut Transaction,
    model: &Model,
    global_id: &str,
    process: EntityId,
    objects: &[EntityId],
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage an IfcRelAssignsToProcess: objects assigned to a process.

Bound to the model’s declared release (#213): the record is laid out by attribute name from that release’s table, with all eight attributes (QuantityInProcess unset). OwnerHistory is left $, which IFC4 and IFC4X3 allow and IFC2X3 does not; in IFC2X3 use assign_to_process_with_owner_history.

§Errors

Refuses a malformed GlobalId, an empty object set, and the process listed among the objects assigned to it. A header binding no single verified release (MultipleSchemas, UnsupportedSchema) and an IFC2X3 model (AuthoringRequired) are refused. Nothing is staged on an error.