Method SetPatternDefinitions
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetPatternDefinitions(IEnumerable<DxfPatternDefinition>)
Sets the lines of the pattern (group 78, then each line's 53, 43, 44, 45, 46, 79 and 49), each as GetPatternDefinitionAt(int) gives it back: turned and scaled with the pattern, in the system of its normal; for a pattern of the caller's own that no pattern file of the drawing holds. ANSI31 at the scale 1 is the one line at pi / 4 through (0, 0), offset (-2.245, 2.245): a square 30 by 20 given it explodes to 11 LINEs, as AutoCAD draws it. The name, type, angle and scale are kept as they are; a later PatternAngle or PatternScale turns and scales these lines as it does those of a file.
public void SetPatternDefinitions(IEnumerable<DxfPatternDefinition> definitions)
Parameters
definitionsIEnumerable<DxfPatternDefinition>The lines, at least one.
Exceptions
- ArgumentNullException
Thrown when the lines are null.
- ArgumentException
Thrown when there is no line.
- InvalidOperationException
Thrown when the HATCH is filled solid, its pattern is made by the user (its lines follow its PatternSpace), or it is erased.