GOHO Posted March 17, 2010 Posted March 17, 2010 Hi, I was working in AutoCAD MAP today and some how my delete key stopped erasing objects from my drawing. I tried to set it up in the CUI but no luck. Anyone know how to get it to work again? Thanks, Quote
alanjt Posted March 17, 2010 Posted March 17, 2010 Restart AutoCAD and/or restart your computer. Quote
Cad64 Posted March 17, 2010 Posted March 17, 2010 Wow, this is getting ridiculous. We really need to post my signature at the top of every forum section. Quote
alanjt Posted March 17, 2010 Posted March 17, 2010 Wow, this is getting ridiculous. We really need to post my signature at the top of every forum section. Mandatory popup: "Welcome to CADTutor: FILEDIA = 1, PICKFIRST = 1, PICKADD = 1" Quote
alanjt Posted March 17, 2010 Posted March 17, 2010 Here's a reactor to solve the entire issue. ;;; FileDia, PickFirst, PickAdd System Variable Reactor ;;; Always reset FileDia, PickFirst & PickAdd variables to 1, if changed. ;;; Alan J. Thompson, 03.16.10 (vl-load-com) (or SysvarReactor (setq SysvarReactor (vlr-sysvar-reactor nil '((:vlr-sysvarchanged . React:SysvarFix)) ) ;_ vlr-sysvar-reactor ) ;_ setq ) ;_ or (defun React:SysvarFix (Call Callback) (and (vl-position (car Callback) '("FILEDIA" "PICKFIRST" "PICKADD")) (or (eq 1 (getvar (car Callback))) (setvar (car Callback) 1)) ) ;_ and (princ) ) ;_ defun Save above contents in Notepad as "SysvarReactor.lsp" Place file in AutoCad Support Path. Either add file to Startup Suite in AppLoad (little briefcase) or add the following line to acaddoc.lsp file: (load "SysvarReactor.lsp" nil) Quote
Lee Mac Posted March 17, 2010 Posted March 17, 2010 Alan, What prevents that reactor from calling itself in a recursive loop? When you change the SysVar in the call-back, surely the reactor event is triggered? Quote
alanjt Posted March 17, 2010 Posted March 17, 2010 Alan, What prevents that reactor from calling itself in a recursive loop? When you change the SysVar in the call-back, surely the reactor event is triggered? (or (eq 1 (getvar (car Callback) :wink: Quote
alanjt Posted March 17, 2010 Posted March 17, 2010 Can't believe I overlooked that... ................. Quote
GOHO Posted March 20, 2010 Author Posted March 20, 2010 Thanks all for the Help, When i posted this thread i noticed that the answer to my question was on another post... Pickfirst = 1 Where can i find a list of all the commands such as pickfirst = 1 in case something weird like that happens again. Quote
Cad64 Posted March 20, 2010 Posted March 20, 2010 They're not commands, they're variables, and 3 of the most common troublemakers are in my signature below. You can find a listing of all Autocad variables, and a description of what they do, by typing SYSVDLG at the command line. Or go to your "Express" menu > Tools > System Variable Editor. Quote
Lee Mac Posted March 21, 2010 Posted March 21, 2010 Another reference here for those who are interested - I find it easier to use than the one in ACAD, but of course, each reference is version specific so bear in mind that this one is for '06. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.