Skip to main content

stage_member

Function stage_member 

Source
pub fn stage_member(
    tx: &mut Transaction,
    model: &Model,
    schema: &Schema,
    draft: MemberDraft,
) -> StructuralResult<EntityId>
Expand description

Stage an IfcStructuralMember create edit on tx.

Fails with StructuralError::InvalidDraftValue if predefined_type does not belong to the curve/surface role set matching kind, or if Thickness is set but not positive and finite; StructuralError::SemanticViolation if predefined_type is UserDefined without a non-blank object_type; StructuralError::MissingRequired if Axis is required by the schema but unset, or predefined_type is Shell without a Thickness; and StructuralError::UnsupportedAttribute if axis is set but the target schema declares no Axis attribute for this type. Returns the id staged for the new entity.