Originally Posted by
son.do
I don't have a clue where to start about lisp. Yes, I need you to walk me through it.
thanks
Wait. Just a thought, but why? I know they re-did revcloud for 2004 and 2005 so it's different from what I'm using but those settings don't make a difference for me. Is that not the case anymore? Whatever, I'll just trust you.
Anyway, here's a very simple little LISP. There are probably many better ways to do it, but I don't see anyone else jumping in so:
Code:
;;;Toggles osnaps and polar tracking on or off
;;;I've added a few notes to explain what's happening in case you're curious
(defun c:toggle (/ ocmdecho);names the function and lists temporary variables
;;;it is written so thatit runs when you type "toggle" at the command line
;;;to change the keys you type in, change toggle above to whatever you want
;;;just be sure what you choose isn't already a command
(setq ocmdecho (getvar "cmdecho"));save command line echo settings
(setvar "cmdecho" 0);turn off command line echo
(if
(= (getvar "autosnap") 0);if polar and otrack are off
(setvar "autosnap" 63);then turn on polar and otrack
(setvar "autosnap" 0);else turn them off
);close if
(setvar "cmdecho" ocmdecho);restore command line echo settings
(princ)
)
Copy that to notepad or something and save it as toggle.lsp (or something else ending in .lsp) in your AutoCAD support folder. Then open CAD and go to TOOLS>>>AUTOLISP>>>LOAD. When the dialog box opens up, click on "startup suite" then "add". Browse to where you just saved toggle.lsp and select it. Once you've done that, any time you load CAD you can type "toggle" (or whatever you changed it to) on the command line and it'll turn off polar and otrack.
It sounds like you already know how to change hotkeys, so just make one that acts as if you typed in "toggle" (or whatever you changed it to).
Clear as mud?