A single PAT line-family descriptor.

Matches the PAT syntax: angle, x-origin, y-origin, delta-x, delta-y, dash-1, dash-2, ...

interface AcDbPatLine {
    angle: number;
    dashes: number[];
    deltaX: number;
    deltaY: number;
    originX: number;
    originY: number;
    sourceLine: number;
}

Properties

angle: number

Line-family angle in degrees.

Following AutoCAD PAT conventions: 0 points along +X, and positive values rotate counterclockwise.

dashes: number[]

Dash pattern segment array in pattern units.

Rules:

  • positive: draw segment (pen-down)
  • negative: gap length (pen-up)
  • 0: dot

An empty array means a continuous solid line.

deltaX: number

X component of the offset to the next parallel line, in pattern units.

Combined with deltaY to define the translation from one family line to the next.

deltaY: number

Y component of the offset to the next parallel line, in pattern units.

Combined with deltaX to define the translation from one family line to the next.

originX: number

Base origin X coordinate in pattern units.

Represents the X component of the first baseline start point.

originY: number

Base origin Y coordinate in pattern units.

Represents the Y component of the first baseline start point.

sourceLine: number

Source line number in the original PAT text (1-based).

Useful for diagnostics and error tracing.