Function Entry: GRDRAW

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: GRDRAW

Name

grdraw

Class

Function

Syntax

(grdraw from to color [highlight])

Arguments and Values

  • from: list of two or three reals; one endpoint of the vector in the current UCS.
  • to: list of two or three reals; the other endpoint.
  • color: integer; AutoCAD color number 0–255. The value -1 selects XOR ink, which complements anything it draws over and erases itself when overdrawn.
  • highlight (optional): integer; if non-zero, the vector is drawn with the device's default highlighting style (typically dashed).

Description

Draws a transient vector between two points in the current viewport. The drawing is automatically clipped to the screen.

Return Values

Always returns nil.

Side Effects

Draws transient (non-persistent) graphics in the viewport.

Examples

Not documented on the vendor page.

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: presumed compatible.
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.