Property PatternScale
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
PatternScale
Gets or sets the scale of a pattern of a pattern file (group 41), as AutoCAD's PatternScale: 2 draws ANSI31's
lines twice as far apart; 1 where the record gives none, and for a pattern made by the user, whose group 41 is its
spacing (PatternSpace).
public double PatternScale { get; set; }
Property Value
- double
Set, a finite number above nought: written in group 41, and the lines of the pattern the HATCH holds scaled by the new scale over the old, their points about the origin of the plane, as ezdxf's
set_pattern_scalescales them; where the drawing's PatternSearchPath finds the pattern, its lines written anew from the file at the new scale and the angle it has, as AutoCAD'sSetHatchPatternwrites them after the scale is set.
Exceptions
- ArgumentOutOfRangeException
Thrown when the scale set is not a finite number above nought.
- InvalidOperationException
Thrown when a scale other than the one it has is set on a solid fill or a pattern made by the user, which have none, or on a HATCH that is erased.