API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

AnalysisModelHandler Class

The AnalysisModelHandler class contains information related to analysis models.
Inheritance Hierarchy
SystemObject
  Tekla.Structures.AnalysisAnalysisModelHandler

Namespace:  Tekla.Structures.Analysis
Assembly:  Tekla.Structures.Analysis (in Tekla.Structures.Analysis.dll) Version: 2019.0.0.0 (2019.0.0.0)
Syntax
public sealed class AnalysisModelHandler

The AnalysisModelHandler type exposes the following members.

Constructors
  Name Description
Public method AnalysisModelHandler
Initializes a new instance of the AnalysisModelHandler class
Top
Methods
  Name Description
Public method AddLoad
Adds a load to the analysis model. The ConstructionMethod must be SELECTED_PARTS, SELECTED_PARTS_AND_LOADS or FLOOR_BY_SELECTED_PARTS_AND_LOADS.
Public method AddPart
Adds a part to the analysis model. The ConstructionMethod must be SELECTED_PARTS, SELECTED_PARTS_AND_LOADS or FLOOR_BY_SELECTED_PARTS_AND_LOADS.
Public method GetActiveModel
Gets the active model.
Public method RemoveLoad
Removes a load from the analysis model. The ConstructionMethod must be SELECTED_PARTS, SELECTED_PARTS_AND_LOADS or FLOOR_BY_SELECTED_PARTS_AND_LOADS.
Public method RemovePart
Removes a part from the analysis model. The ConstructionMethod must be SELECTED_PARTS, SELECTED_PARTS_AND_LOADS or FLOOR_BY_SELECTED_PARTS_AND_LOADS.
Public method SetActiveModel
Sets the active model. The AnalysisModelName or ID has to be set.
Top
Examples
using Tekla.Structures.Analysis;

public class Class
{
    public void Example()
    {
        Analysis Analysis = new Analysis();

        AnalysisObjectSelector AnalysisObjectSelector = Analysis.GetAnalysisObjectSelector();

        AnalysisObjectEnumerator AnalysisObjectEnumerator = AnalysisObjectSelector.GetAllObjectsWithType(AnalysisObject.AnalysisObjectEnum.ANALYSIS_MODEL, "");

        while(AnalysisObjectEnumerator.MoveNext())
        {
            AnalysisModel AnalysisModel = AnalysisObjectEnumerator.Current as AnalysisModel;

            if(AnalysisModel == null) continue;
        }
    }
}
See Also