Print Page | Close Window

Quickly enable all SNAP - AutoCAD

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DXF formats, Design Review, AutoCAD web, Drive, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=13827
Printed Date: 05.Sep.2026 at 22:06


Topic: Quickly enable all SNAP - AutoCAD
Posted By: deoogo
Subject: Quickly enable all SNAP - AutoCAD
Date Posted: 31.Mar.2023 at 20:55
Hello, everyone.

I would like to know if there is any way to enable, through the CUI, all AutoCAD snaps at once. I waste a lot of time re-enabling snaps, because my lisp disables them all whenever I need to use it. ConfusedConfusedConfused

Tks.



Replies:
Posted By: Vladimir Michl
Date Posted: 01.Apr.2023 at 14:09
Create a new command to set OSMODE to 16383 (all "on"):

OSMODE;16383;


-------------
Vladimir Michl (moderator)
https://www.linkedin.com/in/vmichl/" rel="nofollow - LinkedIn , Autodesk Expert Elite


Posted By: Kent Cooper
Date Posted: 03.Apr.2023 at 17:50
Your AutoLisp file(s) can [SHOULD] be edited to do what is standard in well-written routines, that is, to save the OSMODE setting at the beginning, do whatever it does, and reset OSMODE at the end.  Then you can have some combination of modes other than everything when that's what you want, and that will be what is restored for you.

But in any case, I would strongly suggest that you do not turn on all modes for running Osnap.  Leave out NEArest.  It will almost always "win" over other modes that you may intend, often giving undesired results.



Print Page | Close Window