DXF filer that mirrors the ObjectARX AcDbDxfFiler API.

  • Write mode (default): accumulates classic group-code ASCII DXF text, or binary DXF bytes when outputFormat is 'binary'.
  • Read mode: pulls typed pairs from an AcDbDxfPairReader with readItem / pushBackItem / atEndOfObject / atSubclassData.

Constructors

Accessors

  • get capabilities(): AcDbDxfVersionCapabilities
  • DXF dialect capabilities for the target write version. When version is unset (ad-hoc writers / unit tests), treat as latest.

    Returns AcDbDxfVersionCapabilities

Methods

  • Advance past subclass marker (100, name) if present. Returns true when positioned at the named subclass data.

    Parameters

    • name: string

    Returns boolean

  • Current read position in the underlying pair stream. Useful for byte-based parse progress while streaming a DXF.

    Returns { byteOffset: number; line?: number }

  • Apply color group codes (62 ACI / 420 true color) onto color when the current pair matches. Returns true if a color code was consumed.

    Parameters

    • color: AcCmColor
    • aciCode: number = 62
    • trueColorCode: number = 420

    Returns boolean