Share

acedGrDraw

C++

int acedGrDraw(
    const ads_point from, 
    const ads_point to, 
    int color, 
    int hl
);

File

acedads.h

Description

Draws a vector between two points in the current viewport.

AutoCAD clips the vector as required to fit the screen.

Highlighting, controlled by the hl argument, depends on the display device. Most display drivers indicate highlighting by a dashed line, but some indicate it by using a distinctive color.

Unless a critical error occurs, acedGrDraw() returns RTNORM.

Parameters

Parameters Description
from Beginning point of the vector, expressed in the current UCS; can be a three-dimensional point
to End point of the vector, expressed in the current UCS; can be a three-dimensional point
color Vector's AutoCAD color number (in the range 0-255); I -1, the vector is drawn in XOR ink, which complements anything it draws over and erases itself when overdrawn
hl If nonzero, the vector is highlighted; if zero, the vector is drawn in normal display mode

Was this information helpful?