Table of Contents

Method ChangeHatchAngle

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ChangeHatchAngle(CadDocument, string, double)

Sets the angle of a hatch's pattern, as the Hatch Angle item of the menu of its grip does, one undo step: the pattern is laid from the same origin as before.

public static CadEditResult ChangeHatchAngle(CadDocument document, string handle, double angle)

Parameters

document CadDocument

The document.

handle string

The handle of the hatch.

angle double

The new angle, in radians counter-clockwise.

Returns

CadEditResult

What came of it: refused for an object on a locked layer, no hatch, an angle that is not a number, or a solid fill.

Exceptions

ArgumentNullException

Thrown when the document is null.