Control of Graphics and Text Windows

AutoCAD AutoLISP & Visual LISP

 
Control of Graphics and Text Windows
 
 
 

You can control the display of the graphics and text windows from an AutoLISP application. On single-screen AutoCAD installations, a call to graphscr displays the graphics window, and a call to textscr displays the text window. Using these functions is equivalent to toggling the Flip Screen function key. The function textpage is equivalent to textscr.

The redraw function is similar to the AutoCAD REDRAW command but provides more control over what is displayed. It not only redraws the entire graphics area but can also specify a single object to be redrawn or undrawn (that is, blanked out). If the object is a complex object such as an old-style polyline or a block, redraw can draw (or undraw) either the entire object or its header. The redraw function can also highlight and unhighlight specified objects.