Jump to content

Recommended Posts

Posted

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,

Posted

Restart AutoCAD and/or restart your computer.

Posted

Wow, this is getting ridiculous. We really need to post my signature at the top of every forum section. :roll:

Posted
Wow, this is getting ridiculous. We really need to post my signature at the top of every forum section. :roll:

Mandatory popup: "Welcome to CADTutor: FILEDIA = 1, PICKFIRST = 1, PICKADD = 1"

Posted

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

  1. Save above contents in Notepad as "SysvarReactor.lsp"
  2. Place file in AutoCad Support Path.
  3. Either add file to Startup Suite in AppLoad (little briefcase) or add the following line to acaddoc.lsp file: (load "SysvarReactor.lsp" nil)

Posted

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?

Posted
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:

Posted
Can't believe I overlooked that...

:).................

Posted

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.

Posted

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.

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...