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
documentCadDocumentThe document.
handlestringThe handle of the hatch.
angledoubleThe 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.