Class GeometryDraw
- Namespace
- GeometryHelper.TeklaConvert
- Assembly
- GeometryHelper.TeklaConvert.dll
Draws geometry into the Tekla model view as control polycurves, to see where a result lies.
A control polycurve is a temporary line of the model view rather than a part, and like everything the Tekla
API is given it is placed in the current work plane. Geometry read in that same plane — Part.GetSolid(),
or the ToGeoSolids of ReferenceModelObjectConvert and ReferenceModelConvert —
is therefore drawn where it came from. A face is drawn with its outer boundary in red and its holes in white
unless other colours are given, so that a hole stands out from the edge it is cut in.
The view shows what was drawn after Model.CommitChanges(). These methods leave that to the caller, so
that drawing a thousand faces costs one commit rather than a thousand. Each returns the polycurves it
inserted, which Delete() removes again. A polyline with fewer than two distinct points, or one Tekla
will not insert, is skipped rather than thrown on; a polyline Tekla refuses is written to
GeometryHelperLog.
public static class GeometryDraw
- Inheritance
-
GeometryDraw
- Inherited Members
Methods
- DrawPolyline(IEnumerable<GeoPoint3>, bool, ControlObjectColorEnum, ControlObjectLineType)
Draws a polyline through GeometryHelper points as a control polycurve.
- DrawPolyline(IEnumerable<Point>, bool, ControlObjectColorEnum, ControlObjectLineType)
Draws a polyline through Tekla points as a control polycurve.
- DrawToTekla(GeoArc3, ControlObjectColorEnum, ControlObjectLineType)
Draws an arc as a control polycurve.
- DrawToTekla(GeoCircle3, ControlObjectColorEnum, ControlObjectLineType)
Draws a circle as a closed control polycurve.
- DrawToTekla(GeoFace3, ControlObjectColorEnum, ControlObjectColorEnum, ControlObjectLineType)
Draws a face as closed control polycurves: its outer boundary in one colour and every hole in another.
- DrawToTekla(GeoPolygon3, ControlObjectColorEnum, ControlObjectLineType)
Draws a polygon as a closed control polycurve.
- DrawToTekla(GeoPolyline3, ControlObjectColorEnum, ControlObjectLineType)
Draws an open polyline as a control polycurve.
- DrawToTekla(GeoSolid3, ControlObjectColorEnum, ControlObjectColorEnum, ControlObjectLineType)
Draws every face of a body as closed control polycurves: outer boundaries in one colour, holes in another.
- DrawToTekla(IEnumerable<GeoSolid3>, ControlObjectColorEnum, ControlObjectColorEnum, ControlObjectLineType)
Draws every face of several bodies as closed control polycurves: outer boundaries in one colour, holes in another.