# (grclear) [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <a id="197"></a> ## (grclear) --- Clear the viewport. --- This function temporarily blanks out the graphic window of the current viewport. The [redraw](%28redraw%20-ename%20-mode-%29.md) function brings the graphics back. The **grclear** function always returns nil. **Example** | Code | Result | | --- | --- | | (**grclear**) (redraw) | *Clears the graphics window.* *Returns the graphics.* | **Tell me about...** [(grdraw point1 point2 color \[highlight\])](%28grdraw%20point1%20point2%20color%20-highlight-%29.md) [(redraw \[ename \[mode\]\])](%28redraw%20-ename%20-mode-%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28grclear%29.md)