Skip to main content

create_work_calendar

Function create_work_calendar 

Source
pub fn create_work_calendar(
    tx: &mut Transaction,
    global_id: &str,
    name: Option<&str>,
    working_times: &[EntityId],
    exception_times: &[EntityId],
    predefined_type: Option<&str>,
) -> ScheduleAuthoringResult<EntityId>
Expand description

Stage an IfcWorkCalendar.

Working times say when work happens; exception times carve holidays out of them. Both are IfcWorkTime lists, so the two roles are separate slots rather than a flag on the period.

§Errors

Refuses a malformed GUID, and a calendar with neither working nor exception times – it constrains nothing but reads as a real calendar.

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_work_calendar_with_owner_history there, which binds the release (#202).