Hi Sinc,
Being a Devil's advocate I can see a couple of reasons a user might work
with filedia = 0
Ever wondered where your templates are stored?
Set filedia to 0 and type new
Working in an environment where you have a large number of files in a
folder on the AutoCAD path, and typically they have nice short names and
you work with one of them for days on end, so that remembering and
typing the name is a non issue, you could develop a working habit of
having filedia at 0 and typing "~" if and when you need to see the file
dialog box.
User options:
Adding the setting (setvar "Filedia" 1) to the Acaddoc lisp will set it
to 1 each time you open a drawing, but if it is reset during the working
session then it will be noticed until such time as another drawing is
opened.
However, the customisation can be readily carried forward on upgrade.
Adding it as a prefix to the relevant commands as I showed means it will
never raise it's ugly head again. But it does means you have to
customise the menu for each new version (or rely on the tools Autodesk
provide for that purpose.)
I thought another approach would be to add something like:
{code}
(defun C:MyOpen ()
(setvar "filedia" 1)
(command "open")
)
{code}
to the Acaddoc file and call that from the menu or keyboard. I'm
missing something somewhere as none of the lines below work for me.
{code}
(command "_open")
(vl-cmdf "_open")
(command "open")
(vl-cmdf "open")
(command "open" "")
(vl-cmdf "open" "")
{code}
doesn't work for me. Needs a lisp guru.
Regards,
Laurie Comerford
dei-feif wrote:
>> {quote:title=Guest wrote:}{quote}
>>
>
>
>> Any well written customisation software which changes the value will
>> return it to its initial value on completion. However, users often
>> cancel commands before they complete and leave the settings changed. It
>> would be quite unlikely you would have it change if you never use the
>> key.
>>
>
> Actually, I usually saw this problem after C3D crashed.
>
> And really, I could think of several ways that this problem could be fixed for good, rather than seeing it constantly come up in the DG's. (It's got to be the single-most FAQ for Autocad, based on how often I see it.) For that matter, at the simplest level, I could see Autocad simply setting this to 1 by default during startup. After all, why would a user ever want it set to 0? The only things that want it set to 0 are customization routines.
>
> That's basically what I did, by adding a line to my ACADDOC.LSP file that resets FILEDIA to 1. I haven't had FILEDIA problems since. (I also set the other two Do-It-Again variables to 1 in my ACADDOC.LSP, as well - CMDDIA and ATTDIA - because I've seen those get reset occasionally, as well. Nowhere near as often as FILEDIA, but it happened occasionally.)
>
> -- Sinc
> http://www.ejsurveying.com
> http://www.quuxsoft.com
>