Table of Contents

Method ChangeHatchScale

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

ChangeHatchScale(CadDocument, string, double)

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

public static CadEditResult ChangeHatchScale(CadDocument document, string handle, double scale)

Parameters

document CadDocument

The document.

handle string

The handle of the hatch.

scale double

The new scale, above nought.

Returns

CadEditResult

What came of it: refused for an object on a locked layer, no hatch, a scale that is not above nought, or a hatch whose pattern has no scale (a solid fill, a gradient or a pattern made by the user).

Exceptions

ArgumentNullException

Thrown when the document is null.