Skip to main content

create_sequence

Function create_sequence 

Source
pub fn create_sequence(
    tx: &mut Transaction,
    global_id: &str,
    predecessor: EntityId,
    successor: EntityId,
    sequence_type: Option<&str>,
    time_lag: Option<EntityId>,
) -> ScheduleAuthoringResult<EntityId>
Expand description

Stage an IfcRelSequence linking a predecessor to a successor.

A task may not precede itself: a self-loop is an unsatisfiable constraint that the traversal in crate::query would otherwise have to detect as a cycle at read time.

OwnerHistory is written $, which IFC4 and IFC4X3 allow, in their shared layout. This writer takes no model, so it cannot see the declared release: it is for IFC4 and IFC4X3 only. IFC2X3 requires OwnerHistory and lays the record out differently; use create_sequence_with_owner_history there, which binds the release (#202).