pub fn create_procedure(
tx: &mut Transaction,
draft: ProcedureDraft<'_>,
) -> ScheduleAuthoringResult<EntityId>Expand description
Stage an IfcProcedure.
HasName makes Name mandatory even though the slot is
OPTIONAL: a procedure nothing can name cannot be referred to by
the work that must follow it.
ยงErrors
Refuses a malformed GlobalId, a blank name (HasName), a token
outside IfcProcedureTypeEnum, USERDEFINED without
ObjectType (CorrectPredefinedType), and a
user_defined_procedure_type, which IFC4 and IFC4X3 do not declare.
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_procedure_with_owner_history there, which binds the release (#202).