Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

AutoCAD grid snap

chrisreynolds
Enthusiast
Enthusiast

AutoCAD grid snap

chrisreynolds
Enthusiast
Enthusiast

Is there a way to permanently turn OFF the grid snap feature?

 

Every time I open a new drawing or import a dxf/dwg the grid snap is ON, once turned OFF it remains OFF, just need it to be OFF when starting as it is the most annoying feature ever!!!!!

0 Likes
Reply
Accepted solutions (1)
3,727 Views
20 Replies
Replies (20)

ennujozlagam
Mentor
Mentor

try to set SNAPMODE and GRIDMODE to 0 and see if helps. thanks





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

both, snap as well as grid, are stored in the dwg-file, so as you wrote, change the setting in the file and save it.


For new files: you can edit your template DWT, change the settings inside that DWT, save it as your default template, so every time you start a new drawing (which uses this DWT) will have these settings OFF.

 

You might also edit your ACADDOC.LSP and add these 2 lines, this will then be executed every time you create a dwg-file or you open a dwg-file.

(setvar "GRIDMODE" 0)
(setvar "SNAPMODE" 0)

More details to auto-run LISP statements can be found >>>here<<<

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)

chrisreynolds
Enthusiast
Enthusiast

Hi thanks for your replys.

 

The dxf files are ones exported from our Inventor 2019 design suite, as soon as I open them the grid snap in ON, is it AutoCAD or Inventor that set this up?

 

The lsp part sounds good but where do I find the file to edit & where do I enter the new lines please?

 

Edit:

New files from AutoCAD now no longer have grid snap on when creating, Imported files which were created in Inventor still have the same problem

0 Likes

cadffm
Consultant
Consultant

Search for GRIDMODE and SNAPMODE in your (AutoCAD) Help,

there you can read the values are stored in the FILE(Drawing).

 

Are you using a dwg/dxf-template in Inventor? Then you have to edit this template file

<sorry, i am not an inventor user, so i don't know how the exports words on this side>

or

Are you using a dwg/dxf-"Setup file", an INI File or anything like this? Then you have to edit this setting there.

I remember "exportdxf.ini" ??

 

I don't know if you can set a variable directly in this ini File (and i can't find the documentation),

but you able to use a template (it looks like that) -> AUTOCAD TEMPLATE=

 

Back to a template file: Set your variables there.

 

 

Sebastian

0 Likes

chrisreynolds
Enthusiast
Enthusiast

We basically model all of our tooling in Inventor, create all dwg files in Inventor for printing, then 'save copy as' .dxf to enable us to get files for use on the shop floor, we open the files in AutoCAD & strip off all of the unnecessary lines & borders etc.

 

It is as soon as the file is opened the grid snap is ON.

 

We create a turned profile for some of the more complex parts using the dxf, this is where the issue is, until the grid snap is turned OFF is causes problems modifying the already correct dxf to make the required profile, if it 'snaps' to a grid which may only be close to an endpoint the profile is incorrect. I know it just means clicking grid off when opening a file but some days we are doing this 30-40 times, If we miss one parts are made wrong.

0 Likes

cadffm
Consultant
Consultant

Thank you for explanation & smalltalk.

30-40 a day?

Thenyou should use a SCRIPT file (or macro or tool) to do many steps by one click, one step is to set wanted variables like snap&gridmode).

 

Feel free to upload an original DXF (never saved in acad, just fresh from INV) and we take a look.

Sorry to say i can not help on INV side, this the AutoCAD forums and i can support just AutoCAD questions, not INV.

Sebastian

0 Likes

chrisreynolds
Enthusiast
Enthusiast

Just a rough example attached

0 Likes

RobDraw
Mentor
Mentor

As @cadffm suggested, you can have AutoCAD automatically set a variety of things when you open any drawing.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
0 Likes

cadffm
Consultant
Consultant

I checked the DXF and there is the information stored inside the DXF that SNAPMODE is on.

So the problem is not on AutoCADs side.

 

I am sure you will get help here for things on AutoCAD side, but i am out at this point.

Good luck

Sebastian

0 Likes

chrisreynolds
Enthusiast
Enthusiast

Thanks, I have just done a few checks on dxf/dwg files we have received from customers & the same thing happens.

 

So it looks like what you say, there must be something that can be altered in the file open sequence to stop it, maybe

0 Likes

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> there must be something that can be altered in the file

>> open sequence to stop it, maybe

Post 3 in this thread ...

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes

cadffm
Consultant
Consultant
Accepted solution

The Information SNAPMODE=ON is stored in the DXF file.

Is it possible to setup your INV Export to set SNAPMODE=OFF ? I don't know (because i am not an INV User, but i guess you can setup a template file for this)

 

What you can do and Alfred wrote above:

Edit the Open-process in AutoCAD. Alfreds sample will work just for the current viewport,

but for your special case (DXF export from INV) it's working like expected (not bullet proop, but better than nothing)

 

Open AutoCAD, OPTIONS, FILES -> Add a new path for your customizing things to the first (support path) node.

Start a simple Texteditor and add Alfreds lines,

save the files into your new folder with this name: ACADDOC.lsp

 

Thats all.

Sebastian

0 Likes

chrisreynolds
Enthusiast
Enthusiast

Where is the file to alter these please?

0 Likes

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> Where is the file to alter these please?

Please use the link I have shown in my post, there you can see the details about ACADDOC.LSP, where it's stored, or where it can be stored, ...

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
0 Likes

chrisreynolds
Enthusiast
Enthusiast

Great, thanks all.

 

Managed to get my head around where it was:-

C:\Users\CReynolds\AppData\Roaming\Autodesk\AutoCAD 2019\R23.0\enu\Support

 

Created new text file in there called ACADDOC.txt with the info from post 3 in it, renamed it .lsp from .txt

 

Opened AutoCAD & got a message about 'always allow'

Works fine now with no grid on existing files as well as on new ones.

 

I'm guessing i'll just copy the new LSP to similar named folder when we upgrade to 2020 in the near future?

 

Thank you all again, hopefully no more stupid grid shenanigans!!!

Kent1Cooper
Consultant
Consultant

@chrisreynolds wrote:

....\AutoCAD 2019\R23.0\enu\Support

 

Created new text file in there called ACADDOC.txt with the info from post 3 in it, renamed it .lsp from .txt

....

I'm guessing i'll just copy the new LSP to similar named folder when we upgrade to 2020 in the near future?

....


 

What I would suggest is that you make a folder at a higher level called something like AcadSupport, and put that file in it instead, and add the folder to the Support File Search Path list in the Files tab in the OPTIONS dialog box, so AutoCAD will know to look there.  Then when you upgrade, all you need to do is add that same folder to the Search Path list in the new version, rather than dig down to find the correct long-path Support folder location to copy the file into.

 

Also, if you have multiple Users, you can have that folder on a Server, and all Users can access it there.  Then with an upgrade, just add that folder to everyone's Search Path list [which should happen automatically if you choose to migrate settings], and you don't need to copy that file around to everyone's computer, and if you add things to either the acaddoc.lsp file or other files [such as custom command definitions] to that folder, they will be instantly accessible to everyone without the need to copy the edited file or added files around.

Kent Cooper, AIA

cadffm
Consultant
Consultant

I fully support that, Unfortunately, I have to save the explanation and @chrisreynolds  did not follow my proposal šŸ˜ž

 

 


@cadffm wrote:
Open AutoCAD, OPTIONS, FILES -> Add a new path for your customizing things to the first (support path) node.

 

 

 

Sebastian

0 Likes

chrisreynolds
Enthusiast
Enthusiast

@cadffmwas trying to do this between jobs here, Not familiar with any of this AutoLISP stuff at all, done a few customisations with toolbars etc, wrote a script that we run to delete all unnecessary layers from our Inventor files, and that is about as far as my AutoCAD customisation knowledge is.

Inventor we have wrote a script to export all our drawing sheets to pdf & it works a treat.

 

I had a bit more time this afternoon to read through the post replies & have now managed to get it as you originally posted, was difficult to grasp earlier as I kept getting interrupted with questions & phone calls.

 

Thanks all for your help again

cadffm
Consultant
Consultant

Your welcome!

 

"done a few customisations with toolbars etc, wrote a script that we run to.."

Thats the same, all these files shouldn't placed in Program/System folders!

It is much better (more safe) to use your own place, local or in a network.

 

 

cu

 

Sebastian

0 Likes