Skip to main content

stage_analysis_model

Function stage_analysis_model 

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

Stage an IfcStructuralAnalysisModel create edit on tx.

Fails with StructuralError::InvalidGlobalId if draft.global_id is not a valid GUID, StructuralError::SemanticViolation if predefined_type is UserDefined without a non-blank object_type, and with reference validation errors (StructuralError::DanglingReference, StructuralError::WrongReferenceType, StructuralError::InvalidDraftValue) if any referenced entity is missing, of the wrong type, or a SET contains duplicates. Returns the id staged for the new entity.