Table of Contents

Method DrawPolyline

Namespace
GeometryHelper.TeklaConvert
Assembly
GeometryHelper.TeklaConvert.dll

DrawPolyline(IEnumerable<Point>, bool, ControlObjectColorEnum, ControlObjectLineType)

Draws a polyline through Tekla points as a control polycurve.

public static ControlPolycurve DrawPolyline(this IEnumerable<Point> points, bool closed = false, ControlObjectColorEnum color = ControlObjectColorEnum.RED, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

points IEnumerable<Point>

The points, in the current work plane.

closed bool

true to draw the edge from the last point back to the first as well.

color ControlObjectColorEnum

The colour of the polycurve.

lineType ControlObjectLineType

The line type of the polycurve.

Returns

ControlPolycurve

The inserted polycurve, or null when there was nothing to draw or Tekla did not insert it.

Exceptions

ArgumentNullException

Thrown when points is null.

DrawPolyline(IEnumerable<GeoPoint3>, bool, ControlObjectColorEnum, ControlObjectLineType)

Draws a polyline through GeometryHelper points as a control polycurve.

public static ControlPolycurve DrawPolyline(this IEnumerable<GeoPoint3> points, bool closed = false, ControlObjectColorEnum color = ControlObjectColorEnum.RED, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

points IEnumerable<GeoPoint3>

The points, in the current work plane.

closed bool

true to draw the edge from the last point back to the first as well.

color ControlObjectColorEnum

The colour of the polycurve.

lineType ControlObjectLineType

The line type of the polycurve.

Returns

ControlPolycurve

The inserted polycurve, or null when there was nothing to draw or Tekla did not insert it.

Exceptions

ArgumentNullException

Thrown when points is null.