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.

AnalysisResultInsert Method

Insert analysis result. Results are always stored to physical parts. When OBJECT_TYPE_MEMBER or OBJECT_TYPE_AREA is used the analysis model must be active. All results for given part must be inserted within one commit (CommitChanges), older results of this part are removed automatically.

Namespace:  Tekla.Structures.Analysis
Assembly:  Tekla.Structures.Analysis (in Tekla.Structures.Analysis.dll) Version: 2020.0.0.0 (2020.0.55582.0)
Syntax
public bool Insert()

Return Value

Type: Boolean
True if successful.
Examples
Insert analysis result using analysis bar number.
var analysisResult = new AnalysisResult();
analysisResult.ObjectType = AnalysisResult.ObjectTypeEnum.OBJECT_TYPE_MEMBER;
analysisResult.ObjectId = analysisBar.Label.Number;
analysisResult.Position = AnalysisResult.ResultPositionEnum.POSITION_BEAM_START_POINT;
analysisResult.ValueType = AnalysisResult.ValueTypeEnum.VALUETYPE_SHEAR_Y;
analysisResult.LoadCase = 1;
analysisResult.LoadCaseName = "ULS1";
analysisResult.LoadCaseType = LoadCaseTypeEnum.COMBINATION_ULS;
analysisResult.LoadCaseInfo = "TSD class: Gravity";
analysisResult.Value = 100000.0;
var result = analysisResult.Insert();
See Also