Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

GRID MODE PERMANENTLY TURNED OFF

Anonymous

GRID MODE PERMANENTLY TURNED OFF

Anonymous
Not applicable

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. 

0 Likes
Reply
Accepted solutions (1)
12,805 Views
7 Replies
Replies (7)

imadHabash
Mentor
Mentor
Accepted 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

EESignature

0 Likes

dmfrazier
Advisor
Advisor

It may be helpful to understand that the GridMode setting is saved in the drawing. It is not a "system setting".

 

dmfrazier_0-1591904613239.png

 

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:

https://knowledge.autodesk.com/support/autocad/learn-explore/caas/sfdcarticles/sfdcarticles/Setting-...

(Apologies if this has already been offered and I just didn't look carefully enough to figure that out.)

Kent1Cooper
Consultant
Consultant

@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.

Kent Cooper, AIA

dmfrazier
Advisor
Advisor

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.).

0 Likes

NormNZ
Participant
Participant

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

0 Likes

cadffm
Consultant
Consultant

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

0 Likes

Type a product name