Skip to main content

Module authoring

Module authoring 

Source
Expand description

Transactional authoring for tasks, task times and sequence links.

The crate could read a programme and not write one. These constructors reuse the slot constants the readers in crate::task and crate::sequence already declare, so an authored task is readable by construction rather than by coincidence – IfcTask carries thirteen slots, seven of them inherited from IfcRoot, IfcObject and IfcProcess, and a constructor that counted only the six declared attributes would put Status where GlobalId belongs.

§Releases (#202)

The writers here take no model, so they cannot see the declared release. They write the layout IFC4 ADD2 TC1 and IFC4X3 ADD2 share, with IfcRoot.OwnerHistory unset, and are for those releases only. IFC2X3 requires OwnerHistory and lays several records out differently, so each IfcRoot writer has a *_with_owner_history variant that binds the model’s declared release, takes a caller-supplied IfcOwnerHistory and places every attribute by name from that release’s table.

Durations and timestamps are written as authored: ISO 8601 strings are not parsed here, because a scheduling tool owns calendar semantics and silently normalising them would lose the authored intent.

Structs§

CalendarDate
An IFC2X3 IfcCalendarDate: a Gregorian day.
EventDraft
Authored fields for IfcEvent.
EventTimeDraft
Authored fields for IfcEventTime.
LocalTime
An IFC2X3 IfcLocalTime: a time of day.
ProcedureDraft
Attributes of an IfcProcedure.
RecurrenceDraft
Authored fields for IfcRecurrencePattern.
TaskDraft
Authored fields for IfcTask.
TaskTimeDraft
Authored fields for IfcTaskTime.
WorkControlDraft
Authored fields for IfcWorkPlan and IfcWorkSchedule.

Enums§

DateTimeValue
A date, a time or both, as one release or another declares it.
TimeLag
IfcRelSequence.TimeLag, in the form the release declares.

Functions§

assign_tasks_to_control
Stage an IfcRelAssignsToControl binding tasks to a work control.
assign_tasks_to_control_with_owner_history
assign_tasks_to_control in the model’s declared release, with a caller-supplied IfcOwnerHistory.
create_event
Stage an IfcEvent.
create_event_time
Stage an IfcEventTime.
create_event_with_owner_history
create_event in the model’s declared release, with a caller-supplied IfcOwnerHistory.
create_lag_time
Stage an IfcLagTime.
create_lag_time_in
create_lag_time bound to model’s declared release (#211).
create_procedure
Stage an IfcProcedure.
create_procedure_with_owner_history
create_procedure in the model’s declared release, with a caller-supplied IfcOwnerHistory.
create_recurrence_pattern
Stage an IfcRecurrencePattern with all eight IFC4/IFC4X3 attributes.
create_recurrence_pattern_in
create_recurrence_pattern bound to model’s declared release (#233).
create_sequence
Stage an IfcRelSequence linking a predecessor to a successor.
create_sequence_with_owner_history
create_sequence in the model’s declared release, with a caller-supplied IfcOwnerHistory.
create_task
Stage an IfcTask.
create_task_time
Stage an IfcTaskTime.
create_task_time_recurring
Stage an IfcTaskTimeRecurring.
create_task_with_owner_history
create_task in the model’s declared release, with a caller-supplied IfcOwnerHistory, which IFC2X3 requires.
create_time_period
Stage an IfcTimePeriod: a start and end time of day.
create_time_period_in
create_time_period bound to model’s declared release (#233).
create_work_calendar
Stage an IfcWorkCalendar.
create_work_calendar_with_owner_history
create_work_calendar in the model’s declared release, with a caller-supplied IfcOwnerHistory.
create_work_control
Stage an IfcWorkPlan or IfcWorkSchedule.
create_work_control_with_owner_history
create_work_control in the model’s declared release, with a caller-supplied IfcOwnerHistory.
create_work_time
Stage an IfcWorkTime.
nest_tasks
Stage an IfcRelNests nesting child tasks under a parent.
nest_tasks_with_owner_history
nest_tasks in the model’s declared release, with a caller-supplied IfcOwnerHistory.

Type Aliases§

ScheduleAuthoringResult
Result of a schedule authoring call.