Skip to main content

create_event

Function create_event 

Source
pub fn create_event(
    tx: &mut Transaction,
    draft: EventDraft<'_>,
) -> ScheduleAuthoringResult<EntityId>
Expand description

Stage an IfcEvent.

Refuses a USERDEFINED discriminator whose accompanying label is missing. The schema states both as WHERE rules, and a reader that meets one has no way to recover what the author meant: the event reads back as user-defined with nothing saying what it is.

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