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
pointsIEnumerable<Point>The points, in the current work plane.
closedbooltrue to draw the edge from the last point back to the first as well.
colorControlObjectColorEnumThe colour of the polycurve.
lineTypeControlObjectLineTypeThe 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
pointsis 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
pointsIEnumerable<GeoPoint3>The points, in the current work plane.
closedbooltrue to draw the edge from the last point back to the first as well.
colorControlObjectColorEnumThe colour of the polycurve.
lineTypeControlObjectLineTypeThe 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
pointsis null.