Table of Contents

Method ChangeRadius

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ChangeRadius(CadDocument, string, int, GeoPoint2)

Changes the radius of an arc, as the Radius item of the menu of its middle grip does, one undo step: the radius is the distance of the point from the centre, the centre and the two angles kept, so that the ends move along their rays. An arc of radius 50 about (0, 0) given the point (0, 30) has radius 30.

public static CadEditResult ChangeRadius(CadDocument document, string handle, int gripIndex, GeoPoint2 point)

Parameters

document CadDocument

The document.

handle string

The handle of the arc.

gripIndex int

The index of the grip in the middle of the arc, as Of(DxfEntity) gives it.

point GeoPoint2

A point of the new arc, in drawing units.

Returns

CadEditResult

What came of it: refused for an object on a locked layer, no arc, a grip that is not its middle, or a point on the centre.

Exceptions

ArgumentNullException

Thrown when the document is null.