|
|
| Home » Knowledge Base » Knowledge Base Article | Login | Become a Member | What's New | Site Map |
|
WOODWEB DISCLAIMS any and all RESPONSIBILITY and LIABILITY for the accuracy and application of the information below. Readers agree to evaluate the significance and limitations of the information provided, and accept full responsibility for the application of this information. Read More ... |
|
|
Would you like to add information to this article? Interested in writing or submitting an article? Have a question about this article? ACAD OSNAP Help Question
Forum Responses
If you are having trouble with lisp routines not returning your settings to where they were, chances are that they don’t have any error trapping written in the program. I’ve found most simple routines will change your system variables in the beginning of the routine and then restore them at the end. This is okay as long as you let the routine do its thing, but if you use the undo command, it will step back through every line of the routine. 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.
From the original questioner: Thanks. I am using express tools, but beyond that I can't think of any lisp routines I may have imported. I am wondering if hitting escape in the middle of certain functions is clearing my settings. It's always after I have f3 toggled osnaps off that I lose my settings. I like to set my favorite snaps with autolisp using key commands. I need this because I have a program working within AutoCAD that turns off the osnaps for some operations. I prefer the key command rather than tool button for real estate reasons. Here is my lisp. ; DESCRIPTION: favorite Osnaps
(princ "\nYour favorite Snaps have been set !!")
From the original questioner: Well, as it turns out, it is the multi pline edit in express tools. It turns off the osnaps and clears the selections. Go figure. Have you reviewed the related Knowledge Base areas below?
|