& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
I have been searching around trying to find a solution for permanently disabling GridMode when I open the program. Some things just doesn't seem to work. This is for AutoCAD 2020.
Solved! Go to Solution.
prepare any empty CAD dwg file or open any dwg from Ctrl+N then turn OFF the gridlines ( F7 ) . save as the file in your Template location path . open it again from Ctrl+N then close your AutoCAD . Now whenever you open AutoCAD you will find it as you wish and without gridlines .
Imad Habash
It may be helpful to understand that the GridMode setting is saved in the drawing. It is not a "system setting".
So, even if you fix things up in your default (or other) template, you are likely still to encounter drawings in which the setting is different.
To slay that dragon, you can implement some automation that runs when documents are opened. See this:
(Apologies if this has already been offered and I just didn't look carefully enough to figure that out.)
@dmfrazier wrote:
It may be helpful to understand that the GridMode setting is saved in the drawing. ....
To slay that dragon, you can implement some automation that runs when documents are opened. See this: ....
Rather than work with the GRIDDISPLAY System Variable discussed in that link, I would go for the simpler approach with the GRIDMODE System Variable instead. [Yes, though it is called a "System Variable," the value for it is one of those that is stored separately within each drawing file.] Put this into your acaddoc.lsp file [make such a file with only this in it if you don't have one]:
(setvar 'gridmode 0)
and the Grid will be turned off in every drawing you create or open.
Thanks, Kent (@Kent1Cooper). That is actually what I'd intended. I didn't look carefully enough at the link to see that it used a different setting.
In any case, I think @Patchy's posted link already led to the same suggestion (or maybe I didn't look at that one carefully enough either.).
I have been having a problem with drawings regularly sent by a colleague. The grids are turned ON in model space (gridmode=1) but OFF in paperspace (gridmode now = 0). How do we get two values for the same variable.
I have always hated grids and always want them turned off. On opening any drawing I have an autolisp that sets the gridmode variable automatically to zero. Unfortunately this only affects the state in which the drawing was saved. ie they are usually saved in paper space but have grids ON in model space, so my autolisp has no effect. Yes I can set autolisp to switch through all tabs and set gridmode to zero for each as well as in model space. Surely there is an easier way or an expalaination as to why this occurs
Hi,
>>"I have been having a problem with drawings"
Right, Fact one - Gridmode is stored in Drawing files, not in your program
>>"How do we get two values for the same variable."
Simple: Gridmode is a property of VPORTs (Modelspace viewport) and VIEWPORTs (Layout viewports)!
So each V(IEW)PORT has there own GRIDMODE setting.
>>" I can set autolisp to switch through all tabs and set gridmode to zero for each as well as in model space. Surely there is an easier way"
Easier not, but you can write (or find) another code what doesn't need to set active each layout.
Sebastian
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name