How to Turn Off Grid in AutoCAD Permanently (New and Existing Files)

By | November 27, 2026

Hi everyone, welcome back to my blog.

Pressing F7 to turn off the grid in AutoCAD only works temporarily. The next time you create a new file or open a different drawing, the grid shows up again, and you have to switch it off all over again. This guide shows you how to turn off the grid permanently for both new files and existing project files.

Download YQArch plugin 6.7.4

1. Why Does the Grid Come Back When You Open a File?

The grid state is stored inside each DWG file through the GRIDMODEsystem variable. It is not a global software setting. Every file carries its own grid state, so new files and existing files need to be handled separately.

2. Turn Off the Grid Permanently for New Files with a Template (.dwt)

Every new drawing is created from a template file. If the template has the grid turned off, every new file created from it will have the grid off too.

Steps:

  1. Open a new file using the template you currently use, for example acad.dwt or acadiso.dwt.
  2. Press F7, or type GRIDMODE and enter 0, to turn off the grid.
  3. Type SAVEAS, choose the file type AutoCAD Drawing Template (*.dwt), and either overwrite the existing template or save it under a new name, such as MyTemplate.dwt.
  4. Type OPTIONS, go to the Files tab, expand Template Settings > Default Template File Name for QNEW, and point it to the template you just saved.

From now on, every file created with the QNEW command or the New button will have the grid off by default.

Related: Controls display Create New Drawing dialog box.

3. Automatically Turn Off the Grid in Existing Files with acaddoc.lsp

For existing project files, the most effective method is acaddoc.lsp. AutoCAD loads this file every time a drawing is opened, so you can use it to turn off the grid automatically.

Steps

  1. Open Notepad and enter:
    
    (setvar "GRIDMODE" 0)
    (princ)
  2. Save the file as acaddoc.lsp, in ANSI or UTF-8 format, in a permanent folder such as D:CAD_Support.
  3. Type OPTIONS, go to Files > Support File Search Path > Add, and add the path of the folder you just created.
  4. Close and reopen AutoCAD.

From now on, whenever you open any file, old or new, the grid turns off automatically. To write this state into the file itself, you still need to save the drawing as usual. If you need the grid again, you can still turn it on with F7, and it will turn off again the next time you open a file.

Note: In newer AutoCAD versions, if the LSP file doesn’t load automatically, check the SECURELOAD variable or add the folder to Trusted Locations (the TRUSTEDPATHS variable). New to LISP files? See Autolisp load application in AutoCAD.

4. Turn Off the Grid in Bulk with a Script

If you want to turn off the grid and save the change in many files at once, use Script Pro or the SCRIPT command with the following content:


GRIDMODE 0
QSAVE

Then run the script on the list of files you want to modify.

5. Fix the Grid in Layouts and Viewports

Layouts (Paper space) and viewports have their own grid state, so the grid may still appear even after Model space has been turned off. If you are not sure how they differ, read Model space and paper space in layout AutoCAD.

  • Click into the viewport and press F7.
  • Type DSETTINGS (or right-click the Grid button on the status bar and choose Grid Settings) and uncheck Grid On.
  • In AutoCAD 2020 and later, the Grid button is located in the Customization menu (the three-line icon at the right end of the status bar). If you don’t see the button, enable it there.

Lisp total area in AutoCAD (m2)

Thanks for visiting autocadtip.com. Good luck becoming an AutoCAD master.