Table of Contents

Method Parse

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Parse(string)

Reads the patterns of the text of a .pat file, as AutoCAD reads them: a pattern begins at a line starting *, its name all before the first comma, and runs to the next; a comment from a ;, blank lines and the blanks about the numbers passed over; the first pattern of a name kept. A pattern with a line of fewer than five numbers, more than six dashes or a number that cannot be read, or with no line, is left out, as AutoCAD refuses it.

public static IReadOnlyList<CadHatchPattern> Parse(string text)

Parameters

text string

The text.

Returns

IReadOnlyList<CadHatchPattern>

The patterns, in the order of the file.

Exceptions

ArgumentNullException

Thrown when the text is null.