Tekla Open API

Detailed and full API reference helps you master Tekla Open API

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

PolyLine Class

The PolyLine class represents a line that consists of one or more line segments. To create a polyline, you have to give a list of the points that will form the polyline. The first point in the list will be connected with the second point in the list, the second point in the list will be connected with the third point in the list, etc.
Inheritance Hierarchy
SystemObject
  Tekla.Structures.Geometry3dPolyLine

Namespace:  Tekla.Structures.Geometry3d
Assembly:  Tekla.Structures (in Tekla.Structures.dll) Version: 2018.1.0.0 (2018.1.0.0)
Syntax
[SerializableAttribute]
public class PolyLine

The PolyLine type exposes the following members.

Constructors
  Name Description
Public method PolyLine
Instantiates a polyline with the given Points.
Top
Properties
  Name Description
Public property Points
The points the polyline consists of.
Top
Methods
  Name Description
Public method Equals
Returns true if the objects are equal.
(Overrides ObjectEquals(Object).)
Public method GetHashCode
Returns a hash code for a polyline. Notice, in extremely rare cases, you might not get the same hash code for two polylines even though they are considered equal! This should, however, happen only in extremely rare cases!
(Overrides ObjectGetHashCode.)
Public method Length
Returns the length of a polyline.
Top
Operators
  Name Description
Public operatorStatic member Equality
Checks the equality of two polylines.
Public operatorStatic member Inequality
Checks the inequality of two polylines.
Top
See Also