pub fn create_procedure_with_owner_history(
tx: &mut Transaction,
model: &Model,
draft: ProcedureDraft<'_>,
owner_history: EntityId,
) -> ScheduleAuthoringResult<EntityId>Expand description
create_procedure in the model’s declared
release, with a caller-supplied IfcOwnerHistory.
In IFC2X3 identification is written as ProcedureID and
predefined_type as ProcedureType, both required there, and
user_defined_procedure_type as UserDefinedProcedureType, which
IfcProcedure.WR4 requires for USERDEFINED (#214). IFC4 and IFC4X3
declare no UserDefinedProcedureType and refuse a value for it with
AuthoringNotInSchema.
§Errors
Those of create_procedure except its
refusal of user_defined_procedure_type, an IFC2X3 USERDEFINED
without a non-blank user_defined_procedure_type (InvalidValue, WR4),
and the release, value and owner-history refusals of
create_task_with_owner_history. Nothing is staged on an error.