Table of Contents

Method DrawToTekla

Namespace
GeometryHelper.TeklaConvert
Assembly
GeometryHelper.TeklaConvert.dll

DrawToTekla(GeoPolyline3, ControlObjectColorEnum, ControlObjectLineType)

Draws an open polyline as a control polycurve.

public static ControlPolycurve DrawToTekla(this GeoPolyline3 polyline, ControlObjectColorEnum color = ControlObjectColorEnum.RED, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

polyline GeoPolyline3

The polyline, in the current work plane.

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 polyline is null.

DrawToTekla(GeoPolygon3, ControlObjectColorEnum, ControlObjectLineType)

Draws a polygon as a closed control polycurve.

public static ControlPolycurve DrawToTekla(this GeoPolygon3 polygon, ControlObjectColorEnum color = ControlObjectColorEnum.RED, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

polygon GeoPolygon3

The polygon, in the current work plane.

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 polygon is null.

DrawToTekla(GeoArc3, ControlObjectColorEnum, ControlObjectLineType)

Draws an arc as a control polycurve.

public static ControlPolycurve DrawToTekla(this GeoArc3 arc, ControlObjectColorEnum color = ControlObjectColorEnum.RED, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

arc GeoArc3

The arc, in the current work plane.

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.

Remarks

The arc is drawn as the straight pieces ToPolyline() gives, within the automatic share of its radius, which is finer than a model view resolves. Pass a tessellated polyline yourself when the drawing has to be coarser or finer than that.

Exceptions

ArgumentNullException

Thrown when arc is null.

DrawToTekla(GeoCircle3, ControlObjectColorEnum, ControlObjectLineType)

Draws a circle as a closed control polycurve.

public static ControlPolycurve DrawToTekla(this GeoCircle3 circle, ControlObjectColorEnum color = ControlObjectColorEnum.RED, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

circle GeoCircle3

The circle, in the current work plane.

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.

Remarks

The circle is drawn as the straight pieces ToPolygon() gives, about fifty of them, which is finer than a model view resolves.

Exceptions

ArgumentNullException

Thrown when circle is null.

DrawToTekla(GeoFace3, ControlObjectColorEnum, ControlObjectColorEnum, ControlObjectLineType)

Draws a face as closed control polycurves: its outer boundary in one colour and every hole in another.

public static ControlPolycurve[] DrawToTekla(this GeoFace3 face, ControlObjectColorEnum boundaryColor = ControlObjectColorEnum.RED, ControlObjectColorEnum holeColor = ControlObjectColorEnum.WHITE, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

face GeoFace3

The face, in the current work plane.

boundaryColor ControlObjectColorEnum

The colour of the outer boundary.

holeColor ControlObjectColorEnum

The colour of the holes.

lineType ControlObjectLineType

The line type of the polycurves.

Returns

ControlPolycurve[]

The inserted polycurves, the boundary first.

Exceptions

ArgumentNullException

Thrown when face is null.

DrawToTekla(GeoSolid3, ControlObjectColorEnum, ControlObjectColorEnum, ControlObjectLineType)

Draws every face of a body as closed control polycurves: outer boundaries in one colour, holes in another.

public static ControlPolycurve[] DrawToTekla(this GeoSolid3 solid, ControlObjectColorEnum boundaryColor = ControlObjectColorEnum.RED, ControlObjectColorEnum holeColor = ControlObjectColorEnum.WHITE, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

solid GeoSolid3

The body, in the current work plane.

boundaryColor ControlObjectColorEnum

The colour of the outer boundaries.

holeColor ControlObjectColorEnum

The colour of the holes.

lineType ControlObjectLineType

The line type of the polycurves.

Returns

ControlPolycurve[]

The inserted polycurves.

Remarks

A curved surface arrives triangulated, so a round tube draws hundreds of polycurves.

Exceptions

ArgumentNullException

Thrown when solid is null.

DrawToTekla(IEnumerable<GeoSolid3>, ControlObjectColorEnum, ControlObjectColorEnum, ControlObjectLineType)

Draws every face of several bodies as closed control polycurves: outer boundaries in one colour, holes in another.

public static ControlPolycurve[] DrawToTekla(this IEnumerable<GeoSolid3> solids, ControlObjectColorEnum boundaryColor = ControlObjectColorEnum.RED, ControlObjectColorEnum holeColor = ControlObjectColorEnum.WHITE, ControlObjectLineType lineType = ControlObjectLineType.SolidLine)

Parameters

solids IEnumerable<GeoSolid3>

The bodies, in the current work plane. Null entries are skipped.

boundaryColor ControlObjectColorEnum

The colour of the outer boundaries.

holeColor ControlObjectColorEnum

The colour of the holes.

lineType ControlObjectLineType

The line type of the polycurves.

Returns

ControlPolycurve[]

The inserted polycurves.

Exceptions

ArgumentNullException

Thrown when solids is null.