Skip to main content

create_work_time

Function create_work_time 

Source
pub fn create_work_time(
    tx: &mut Transaction,
    name: Option<&str>,
    recurrence: Option<EntityId>,
    start: Option<&str>,
    finish: Option<&str>,
) -> ScheduleAuthoringResult<EntityId>
Expand description

Stage an IfcWorkTime.

One working or exception period inside a calendar. The recurrence pattern is optional: a period with explicit start and finish dates and no pattern is a single block, which is what a one-off shutdown is.

ยงErrors

Refuses an empty name when one is given, since a named period that carries no name reads back as unnamed rather than as authored.