Skip to main content

create_spatial_zone_with_owner_history

Function create_spatial_zone_with_owner_history 

Source
pub fn create_spatial_zone_with_owner_history(
    tx: &mut Transaction,
    model: &Model,
    global_id: &str,
    attributes: ElementAttributes<'_>,
    long_name: Option<&str>,
    predefined_type: Option<&str>,
    object_type: Option<&str>,
    owner_history: EntityId,
) -> SystemAuthoringResult<EntityId>
Expand description

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

PredefinedType is checked against the release’s own IfcSpatialZoneTypeEnum: IFC4X3 adds INTERFERENCE and RESERVATION, which IFC4 refuses.

§Errors

Those of create_spatial_zone, the release and owner-history refusals of create_system_with_owner_history, EntityNotInSchema in IFC2X3, and AuthoringValueType for a token the release does not declare. Nothing is staged on an error.