Skip to main content

create_layer_with_offsets

Function create_layer_with_offsets 

Source
pub fn create_layer_with_offsets(
    tx: &mut Transaction,
    model: &Model,
    draft: LayerDraft<'_>,
    offset_direction: LayerSetDirection,
    offset_values: [f64; 2],
) -> MaterialResult<EntityId>
Expand description

Stage an IfcMaterialLayerWithOffsets. IFC4 onwards.

The record carries nine slots: the seven it inherits from IfcMaterialLayer followed by its own two. Writing only the subtype attributes would shift every inherited value into the wrong slot, which is why this is a separate constructor rather than a flag on create_layer.

ยงErrors

Those of create_layer, non-finite offsets, and MaterialError::EntityNotInSchema for IFC2X3.