Table of Contents

Method Offset

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

Offset(DxfCurve, double, GeoPoint2)

Offsets a curve to the side of a point, as one pick of OFFSET with a distance typed: a line from (0, 0) to (100, 0) offset by 5 toward (50, 10) adds a line from (0, 5) to (100, 5) on the layer of the curve, which is kept. Sends the queued changes with it.

public IReadOnlyList<DxfCurve> Offset(DxfCurve curve, double distance, GeoPoint2 side)

Parameters

curve DxfCurve

A curve read from this drawing: a line, arc, circle, ellipse, polyline, spline, xline or ray.

distance double

The distance, above nought (the app refuses one the tolerance calls nought).

side GeoPoint2

The point on the side to offset to, in the world, not on the curve.

Returns

IReadOnlyList<DxfCurve>

Copies of the curves the offset added, each with a handle of its own.

Exceptions

ArgumentNullException

Thrown when the curve is null.

ArgumentException

Thrown when the curve was not read from this drawing.

ArgumentOutOfRangeException

Thrown when a number is not finite or the distance is not above nought.

CadRemoteException

Thrown when the app refuses, as Move<T>(IEnumerable<T>, GeoVector2) says, or the curve is not one OFFSET takes, the side is on the curve, or the offset makes no curve. Nothing is applied.