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.

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

Namespace:  Tekla.Structures.Geometry3d
Assembly:  Tekla.Structures (in Tekla.Structures.dll) Version: 2021.0.0
public class PolyLine

The PolyLine type exposes the following members.

  Name Description
Public method PolyLine
Instantiates a polyline with the given Points.
  Name Description
Public property Points
The points the polyline consists of.
  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.
  Name Description
Public operatorStatic member Equality
Checks the equality of two polylines.
Public operatorStatic member Inequality
Checks the inequality of two polylines.
See Also