pub fn create_with_owner_history(
tx: &mut Transaction,
model: &Model,
kind: Occurrence,
global_id: &str,
predefined_type: Option<&str>,
typed_by: Option<EntityId>,
draft: OccurrenceDraft<'_>,
owner_history: EntityId,
) -> OccurrenceResult<EntityId>Expand description
create with a caller-supplied IfcOwnerHistory, which IFC2X3
requires on every IfcRoot.
owner_history must be in the model or staged earlier on tx, and must
be an IfcOwnerHistory; one is never invented here (build it with
ifc-author). In IFC4 and IFC4X3 the reference fills the optional slot.
ยงErrors
Those of create except the IFC2X3 OwnerHistory refusal, and
OccurrenceError::UnresolvedOwnerHistory or
OccurrenceError::NotAnOwnerHistory for an owner_history that does
not resolve or is another entity. Nothing is staged on an error.