Skip to main content

add_window_lining_properties

Function add_window_lining_properties 

Source
pub fn add_window_lining_properties(
    tx: &mut Transaction,
    global_id: &str,
    draft: WindowLiningDraft<'_>,
) -> PropertyResult<EntityId>
Expand description

Stage an IfcWindowLiningProperties.

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

§Errors

Refuses a malformed GlobalId; a lining depth without its thickness (WR31); a second transom or mullion offset without the first (WR32, WR33); and any measure outside its schema type. The offsets are IfcNormalisedRatioMeasure, so they are bounded to [0, 1] rather than treated as free lengths.

Unlike the door rules, these are ordered rather than XOR: a first offset alone is legal, a second alone is not.