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.

Line Class

The Line class represents a single infinite line in 3D space. See LineSegment for the implementation of a segment of a line.
Inheritance Hierarchy
SystemObject
  Tekla.Structures.Geometry3dLine

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

The Line type exposes the following members.

Constructors
  Name Description
Public method Line
Instantiates a line with an undefined direction.
Public method Line(LineSegment)
Instantiates a line defined by the given line segment.
Public method Line(Point, Point)
Instantiates a line defined by the given points.
Public method Line(Point, Vector)
Instantiates a line defined by the given point and direction vector.
Top
Properties
  Name Description
Public property Direction
The direction vector of the line.
Public property Origin
The origin of the line.
Top
See Also