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: 2024.0.0+a110b435391768740483e3032720a566518c9a63
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
Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next