Question
I am having fits with losing my osnap settings in 2002. I frequently toggle them off and on with F3, but all of a sudden all my settings are gone. I can't figure out if it is some combination of key strokes and clicks which clears them, but it is driving me crazy. Any ideas?
Forum Responses
(CAD Forum)
Do you have any third party or lisp routines installed? I've run into this problem before when I've used some custom applications. Don't know how to fix it, though. I'm finding it harder and harder to get these lisp routines to work with each new iteration of ACAD.
So, you might undo until you see the object gone from your screen, but you didn’t go back far enough to undo the system variable changes it made, like snap settings. If this is the case, you need to write some error trapping into your lisp routines, so if you hit escape or undo, it will automatically return to the top of the routine so your settings are the same as before the routine ran.
AutoCAD does the same thing with its programs. Say you have your snap settings to endpoint and midpoint, then you uncheck them and draw a line, then undo a few times. You will see that the snap settings are back to end and mid because you went back to the point where they were on. Same thing with f3 toggling the snaps on/off.
One thing you can do is make a button that will set your snaps to your basic setup.
1. Get your snaps to what you want for a default. Click ok.
2. In the command window, type osmode and you will see a number at the end example. Check endpoint and midpoint type osmode and you should see “3”.
3. Right click on any button and select "customize" from the dropdown menu.
Here is my lisp.
; DESCRIPTION: favorite Osnaps
;
; Entering "fs" sets current Osnap mode as defined in expression:
;
; 0=none
; 1=endpoint
; 2=midpoint
; 4=center
; 8=node
; 16=quadrant
; 32=intersection
; 64=insert
; 128=perpendicular
; 256=Tangent
; 512=Nearest
; 1024=Quick
; 2048=apparent Intesection
; 4096=Extension
; 8192=Parallel
;
; If more than one mode is required, enter the sum of those modes.
;
(princ "\nYour favorite Snaps have been set !!")
(PRINC))