Skip to main content

grid

Function grid 

Source
pub fn grid(
    tx: &mut Transaction,
    global_id: &str,
    placement: Option<EntityId>,
    axes: (&[EntityId], &[EntityId], &[EntityId]),
    predefined_type: Option<&str>,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcGrid: the U/V/W axis system a plan is dimensioned against.

UAxes and VAxes are LIST [1:?] OF UNIQUE, so a grid needs at least one axis in each direction and may not list the same axis twice. A repeated axis is not a harmless duplicate: it makes the grid ambiguous about which intersection a gridline names.

§Release

Takes no model, so it writes the IFC4 layout (11 attributes) with OwnerHistory $. That is valid IFC4 and IFC4X3 and never valid IFC2X3, which requires OwnerHistory and declares 10 attributes. Use grid_with_owner_history to write the model’s declared release.

§Errors

Refuses a malformed GlobalId, an empty U or V list, and a repeated axis within any one list.