pub fn create_spatial_zone(
tx: &mut Transaction,
global_id: &str,
attributes: ElementAttributes<'_>,
long_name: Option<&str>,
predefined_type: Option<&str>,
object_type: Option<&str>,
) -> SystemAuthoringResult<EntityId>Expand description
Stage an IfcSpatialZone: a zone that occupies space.
§The USERDEFINED rule
IfcSpatialZoneTypeEnum includes USERDEFINED, which means
“the predefined list does not cover this”. The schema pairs that
with ObjectType on IfcObject: choosing USERDEFINED without
naming the user-defined kind leaves the zone’s purpose
unrecoverable, so it is refused here rather than written out as
a file nobody can interpret.
Writes OwnerHistory $, so the record is IFC4/IFC4X3 only; use
create_spatial_zone_with_owner_history for a release-bound record.
IFC2X3 declares no IfcSpatialZone.
§Errors
Refuses a malformed GlobalId, and USERDEFINED without an
object_type label.