Skip to main content

create_zone

Function create_zone 

Source
pub fn create_zone(
    tx: &mut Transaction,
    global_id: &str,
    name: Option<&str>,
    description: Option<&str>,
    long_name: Option<&str>,
) -> SystemAuthoringResult<EntityId>
Expand description

Stage an IfcZone: spaces grouped for a shared purpose.

A zone holds no members directly. Membership is an IfcRelAssignsToGroup pointing at this entity, which is why this takes no member list – staging one here would imply the zone owns its contents, and it does not.

Writes the IFC4/IFC4X3 six-attribute layout with OwnerHistory $, so the record is IFC4/IFC4X3 only; use create_zone_with_owner_history for IFC2X3, which declares five (no LongName).

§Errors

Refuses a malformed GlobalId.