Skip to main content

add_door_panel_properties

Function add_door_panel_properties 

Source
pub fn add_door_panel_properties(
    tx: &mut Transaction,
    global_id: &str,
    name: Option<&str>,
    operation: &str,
    position: &str,
    panel: (Option<f64>, Option<f64>),
) -> PropertyResult<EntityId>
Expand description

Stage an IfcDoorPanelProperties.

PanelOperation and PanelPosition are mandatory: the schema does not mark them OPTIONAL, so a panel always states how it moves and where it sits.

Takes no model, so it writes the IFC4 layout with OwnerHistory $: valid IFC4 and IFC4X3, never valid IFC2X3. Use add_door_panel_properties_with_owner_history to write the model’s declared release.

§Errors

Refuses a malformed GlobalId, a token outside its own enumeration, a non-positive panel depth, and a panel width outside [0, 1] (PanelWidth is an IfcNormalisedRatioMeasure, a fraction of the opening rather than a length).