Skip to main content

create_sequence_with_owner_history

Function create_sequence_with_owner_history 

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

create_sequence in the model’s declared release, with a caller-supplied IfcOwnerHistory.

IFC2X3 requires TimeLag as an IfcTimeMeasure (TimeLag::Seconds) and SequenceType; IFC4 and IFC4X3 take an IfcLagTime (TimeLag::LagTime). The other form is refused with AuthoringValueType, and a missing required one with AuthoringRequired. IFC2X3’s IfcSequenceEnum has no USERDEFINED.

§Errors

Those of create_sequence, a non-finite TimeLag::Seconds (InvalidValue), and the release, value and owner-history refusals of create_task_with_owner_history. Nothing is staged on an error.