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.

AnalysisResultPositions Class

The AnalysisResultPositions class contains information about analysis result positions.
Inheritance Hierarchy

Namespace:  Tekla.Structures.Analysis
Assembly:  Tekla.Structures.Analysis (in Tekla.Structures.Analysis.dll) Version: 2020.0.0.0 (2020.0.55582.0)
public sealed class AnalysisResultPositions

The AnalysisResultPositions type exposes the following members.

  Name Description
Public method AnalysisResultPositions
Creates a new analysis result positions instance.
  Name Description
Public property aPositions
The position types.
Public property aPositionsX
The X coordinates of the positions.
Public property aPositionsY
The Y coordinates of the positions.
Public property aPositionsZ
The Z coordinates of the positions.
Public property nPositions
The number of returned positions.
Public property ObjectId
The identifier of the object.
Public property ObjectType
The object type. In result query the only supported type is the physical member (the part).
  Name Description
Public method GetResultPositions
Gets the analysis result positions.
The following example queries the available analysis result positions for the object.
using Tekla.Structures.Analysis;
using System.Collections;

public class Example
       public void Example1()
           int PartId = 0;

           AnalysisResultPositions ResultPositions = new AnalysisResultPositions();

           ResultPositions.ObjectType = AnalysisResult.ObjectTypeEnum.OBJECT_TYPE_PART;
           ResultPositions.ObjectId = PartId;

           bool Result = ResultPositions.GetResultPositions();

           ArrayList ValuePositions = ResultPositions.aPositions;
           ArrayList ValuePositionsX = ResultPositions.aPositionsX;
           ArrayList ValuePositionsY = ResultPositions.aPositionsY;
           ArrayList ValuePositionsZ = ResultPositions.aPositionsZ;
See Also