Parser for AutoCAD PAT text content.

This parser follows a best-effort strategy:

  • valid patterns are still returned when some rows are malformed;
  • non-fatal problems are collected into AcDbPatDocument.issues;
  • PAT line numbers are preserved in parsed descriptors for diagnostics.

Typical usage:

Constructors

Methods

Constructors

Methods

  • Parse PAT file text into structured patterns and issues.

    The method accepts complete PAT file content (including comments, blank lines, and multiple pattern blocks). It normalizes line endings, parses headers and line descriptors, and records any recoverable errors.

    Parameters

    • content: string

      Raw PAT file text.

    Returns AcDbPatDocument

    Parsed document containing both successful patterns and collected parse issues.