interface DwgPolylineEntity {
    color?: number;
    colorIndex?: number;
    colorName?: string;
    elevation: number;
    endWidth?: number;
    extrusionDirection?: DwgPoint3D;
    flag: number;
    handle: number;
    isInPaperSpace?: boolean;
    isVisible?: boolean;
    layer: string;
    lineType?: string;
    lineTypeScale?: number;
    lineweight?: number;
    materialObjectHardId?: string;
    meshMVertexCount?: number;
    meshNVertexCount?: number;
    ownerBlockRecordSoftId: number;
    ownerDictionaryHardId?: string | number | boolean;
    ownerDictionarySoftId?: string | number | boolean;
    plotStyleHardId?: string;
    proxyByte?: number;
    proxyEntity?: string;
    shadowMode?: number;
    smoothType?: DwgSmoothType;
    startWidth?: number;
    surfaceMDensity?: number;
    surfaceNDensity?: number;
    thickness?: number;
    transparency?: number;
    type: "POLYLINE";
    vertices: DwgVertexEntity[];
    xdata?: DwgXData;
}

Hierarchy (View Summary)

Properties

color?: number

A 24-bit color value that should be dealt with in terms of bytes with values of 0 to 255. The lowest byte is the blue value, the middle byte is the green value, and the third byte is the red value. The top byte is always 0. The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data

colorIndex?: number

Color number (present if not BYLAYER); zero indicates the BYBLOCK (floating) color; 256 indicates BYLAYER; a negative value indicates that the layer is turned off (optional)

colorName?: string

Color name. The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data

elevation: number

polyline's elevation (in OCS when 2D; WCS when 3D)

endWidth?: number

Default end width (optional; default = 0)

extrusionDirection?: DwgPoint3D

Extrusion direction (optional; default = 0, 0, 1)

flag: number

Polyline flag (bit-coded; default = 0):

  • 1: This is a closed polyline (or a polygon mesh closed in the M direction)
  • 2: Curve-fit vertices have been added
  • 4: Spline-fit vertices have been added
  • 8: This is a 3D polyline
  • 16: This is a 3D polygon mesh
  • 32: The polygon mesh is closed in the N direction
  • 64: The polyline is a polyface mesh
  • 128: The linetype pattern is generated continuously around the vertices of this polyline
handle: number

Handle

isInPaperSpace?: boolean

Absent or zero indicates entity is in model space. 1 indicates entity is in paper space (optional).

isVisible?: boolean

Object visibility (optional):

  • 0: Visible
  • 1: Invisible
layer: string

Layer name

lineType?: string

Linetype name (present if not BYLAYER). The special name BYBLOCK indicates a floating linetype (optional)

lineTypeScale?: number

Linetype scale (optional)

lineweight?: number

Lineweight enum value. Stored and moved around as a 16-bit integer.

materialObjectHardId?: string

Hard-pointer ID/handle to material object (present if not BYLAYER)

meshMVertexCount?: number

Polygon mesh M vertex count (optional; default = 0)

meshNVertexCount?: number

Polygon mesh N vertex count (optional; default = 0)

ownerBlockRecordSoftId: number

Soft-pointer ID/handle to owner BLOCK_RECORD object

ownerDictionaryHardId?: string | number | boolean

Hard-owner ID/handle to owner dictionary (optional)

ownerDictionarySoftId?: string | number | boolean

Soft-pointer ID/handle to owner dictionary (optional)

plotStyleHardId?: string

Hard-pointer ID/handle to the plot style object

proxyByte?: number

Number of bytes in the proxy entity graphics represented in the subsequent 310 groups, which are binary chunk records (optional)

proxyEntity?: string

Proxy entity graphics data (multiple lines; 256 characters max. per line) (optional)

shadowMode?: number

Shadow mode

  • 0: Casts and receives shadows
  • 1: Casts shadows
  • 2: Receives shadows
  • 3: Ignores shadows

Note: Starting with AutoCAD 2016-based products, this property is obsolete but still supported for backwards compatibility.

smoothType?: DwgSmoothType

Curves and smooth surface type (optional; default = 0); integer codes, not bit-coded:

  • 0: No smooth surface fitted
  • 5: Quadratic B-spline surface
  • 6: Cubic B-spline surface
  • 8: Bezier surface
startWidth?: number

Default start width (optional; default = 0)

surfaceMDensity?: number

Smooth surface M density (optional; default = 0)

surfaceNDensity?: number

Smooth surface N density (optional; default = 0)

thickness?: number

Thickness (optional; default = 0)

transparency?: number

Transparency value. The group code cannot be used by custom entities for their own data because the group code is reserved for AcDbEntity, class-level color data and AcDbEntity, class-level transparency data

type: "POLYLINE"

Entity type

vertices: DwgVertexEntity[]
xdata?: DwgXData

The extension dictionary attached to the entity (optional).