(grvecs vector-lists [trans])


Draw one or more lines.


This function is like grdraw, except that it draws more than one vector at a time in the current viewport. These are temporary vectors that disappear with any command that refreshes the viewport.

The argument vector-lists represents lists for drawing vectors, complete with from and to points and color. The points must be passed as pairs, in two successive point lists:

'([color] from1 to1

[color] from2 to2

...

)

The color portion of the vector list must be within the range of 0-255. If the value is greater than 255, the color becomes XOR ink, which complements anything it draws over. If the color is less than 0, the vector becomes highlighted:

Color Meaning
-1 Highlight ink.
0 - 255 Standard progeCAD colors.
256 XOR ink.

Examples

Code Returns Draws
(grvecs '( 2 (1.0 1.0) (3.0 6.0))) nil 2 = Yellow vector.
(grvecs '( 1 (3.0 6.0) (6.5 10.5) nil 1 = Red vector.
4 (0.0 0.0) (3.0 5.0)))   4 = Cyan vector.

Tell me about...

(grclear)

(grdraw point1 point2 color [highlight])

(redraw [ename [mode]])

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language