Class CadApiSketchHelper
Inheritance
CadApiSketchHelper
Assembly: CADIPC.DotnetHelper.dll
Syntax
public static class CadApiSketchHelper
Methods
AddArc(ComWrapper<ICadIpcSketch>, double, double, double, double, double, double, double)
Declaration
public static void AddArc(this ComWrapper<ICadIpcSketch> sketchCom, double x1, double y1, double x2, double y2, double cx, double cy, double r)
Parameters
AddCircle(ComWrapper<ICadIpcSketch>, double, double, double)
Declaration
public static void AddCircle(this ComWrapper<ICadIpcSketch> sketchCom, double cx, double cy, double r)
Parameters
AddLine(ComWrapper<ICadIpcSketch>, double, double, double, double)
Add a single line segment between (x1, y1) and (x2, y2) in
sketch-local 2D coordinates via IPC.
Declaration
public static void AddLine(this ComWrapper<ICadIpcSketch> sketchCom, double x1, double y1, double x2, double y2)
Parameters
AddPoint(ComWrapper<ICadIpcSketch>, double, double)
Declaration
public static void AddPoint(this ComWrapper<ICadIpcSketch> sketchCom, double x, double y)
Parameters
AddPolygon(ComWrapper<ICadIpcSketch>, double, double, double, int)
Declaration
public static void AddPolygon(this ComWrapper<ICadIpcSketch> sketchCom, double cx, double cy, double r, int sides)
Parameters
AddRectangle(ComWrapper<ICadIpcSketch>, double, double, double, double)
Add an axis-aligned rectangle with bottom-left corner at (x, y)
and the given width and height (sketch-local 2D coordinates) via IPC.
Declaration
public static void AddRectangle(this ComWrapper<ICadIpcSketch> sketchCom, double x, double y, double width, double height)
Parameters
AddSlot(ComWrapper<ICadIpcSketch>, double, double, double, double, double)
Declaration
public static void AddSlot(this ComWrapper<ICadIpcSketch> sketchCom, double x1, double y1, double x2, double y2, double r)
Parameters
Face(ComWrapper<ICadIpcSketch>, int)
Return the face at the given zero-based index.
Declaration
public static ComWrapper<ICadIpcSketchFace> Face(this ComWrapper<ICadIpcSketch> sketchCom, int index)
Parameters
Returns
FaceCount(ComWrapper<ICadIpcSketch>)
Number of closed faces materialised on this sketch.
Declaration
public static int FaceCount(this ComWrapper<ICadIpcSketch> sketchCom)
Parameters
Returns