Skip to main content

create_facility_with_owner_history

Function create_facility_with_owner_history 

Source
pub fn create_facility_with_owner_history(
    tx: &mut Transaction,
    model: &Model,
    kind: Facility,
    global_id: &str,
    predefined_type: Option<&str>,
    draft: FacilityDraft<'_>,
    owner_history: EntityId,
) -> FacilityResult<EntityId>
Expand description

create_facility in the model’s declared release, with a caller-supplied IfcOwnerHistory (#202).

The record is laid out by attribute name from the release’s table. Only IFC4X3 declares the facility classes, so an IFC2X3 or IFC4 model is refused with EntityNotInSchema.

§Errors

Those of create_facility, and FacilityError::Authoring wrapping the release and owner-history refusals of aggregate_with_owner_history. Nothing is staged on an error.