Skip to main content

create_profile_with_offsets

Function create_profile_with_offsets 

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

Stage an IfcMaterialProfileWithOffsets. IFC4 onwards.

The offset variant of create_profile. OffsetValues is an ARRAY [1:2]: two finite lengths, so a single value or three is not an under-specified profile but a malformed one.

ยงErrors

Refuses non-finite offsets, a priority outside 0..=100, and a Profile or Material reference whose target is the wrong type.