Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Where is SAVETIME in registry?

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
921 Views, 10 Replies

Where is SAVETIME in registry?

Does anybody know how to set AutoSave settings like SAVETIME & ISAVEBAK in registry directly?

 

10 REPLIES 10
Message 2 of 11
doni49
in reply to: Anonymous

No I've never had the need.  What are you trying to accomplish?  Changing the registry manually can be a BAD thing so be careful. 

 

But you could hunt down the location.

 

Do a search (using F3) for "SAVETIME", "AUTOSAVE" etc.  See if you can find something that looks right.

 

Then to be sure that you've got the right location, open acad and change the value to some obscure number (such as 133 or something) and close acad.  Did the registry entry update to your new value?

 

One thing to look out for is that you will probably find that the setting is in the "User" area of the registry.



Don Ireland
Engineering Design Technician




If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.


Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.

Message 3 of 11
Anonymous
in reply to: doni49

Hi,

 

Thanks for your reply!

We like to use this option for when your are starting a drawing directly from the explorer. Strangly enough the setting seems not to be set by some users in this way. Since we are only setting the savetime, we think it is not a big thing to do in the registry.... by pushing it.

 

I did not find SAVETIME in registry...

 

Greetings,

 

Message 4 of 11
christopher.l.evans
in reply to: Anonymous

You could write a LISP for that and then add it to the acaddoc.lsp.

Message 5 of 11
aqdam1978
in reply to: Anonymous

Hi,

 

If you like to change savetime variable for example to 10 minutes with starting AutoCAD, so do these steps:

 

1- open notepad and add this line:

(setvar 'savetime 10)

2-save as acaddoc.lsp in your folder.

3-if your folder is not in support folders list, just add it via

Tools>Options>Files>Support File Search Path>ADD

 

everytime you open a drawing, SAVETIME will be set to 10 minutes.

 

hope to help you

 

Abbas

 

Message 6 of 11
doni49
in reply to: aqdam1978


@aqdam1978 wrote:

Hi,

 

If you like to change savetime variable for example to 10 minutes with starting AutoCAD, so do these steps:

 

1- open notepad and add this line:

(setvar 'savetime 10)

2-save as acaddoc.lsp in your folder.

3-if your folder is not in support folders list, just add it via

Tools>Options>Files>Support File Search Path>ADD

 

everytime you open a drawing, SAVETIME will be set to 10 minutes.

 

hope to help you

 

Abbas

 


Correction:  (setvar "savetime" 10)

 

If you don't put the quotes, it's going to throw errors.

 

Also:  I have one caveat to offer.

 

Be sure there's not already ANOTHER acaddoc.lsp file already in use (possibly in different folder within the support path).  If more than one exists throughout the support path then ONLY the FIRST one found will be run.



Don Ireland
Engineering Design Technician




If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.


Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.

Message 7 of 11
aqdam1978
in reply to: doni49

(setvar 'savetime 10)
and
(setvar "savetime" 10)
are same, just try....
Message 8 of 11
doni49
in reply to: aqdam1978


@aqdam1978 wrote:
(setvar 'savetime 10)
and
(setvar "savetime" 10)
are same, just try....

Hmmmm.  Learn something new everyday.  I never knew that.



Don Ireland
Engineering Design Technician




If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.


Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.

Message 9 of 11
Anonymous
in reply to: doni49

Dear all,

 

Thanks for the tips!!

I know about the lisp file ... in fact we have that... but the problem is that this file is not found once the Profile is not used... and if we use an acaddoc.lsp in the main support path of AutoCAD our own acaddoc.lsp is not used when using the Profile... (when it is used)...

 

So this is the reason why we like to set it in the registry. This is something that can be done centrally every time.

 

Greetings,

Message 10 of 11
Anonymous
in reply to: Anonymous

All you'd have to do then is simply take the line of code

(setvar "savetime" 10)

and place it within your existing acaddoc.lsp file, perhaps at the bottom or at the top of the file.

That way it will load along with your other acaddoc functions/commands whilst not requiring any sort of new search path information or new lisp file to be loaded.

Message 11 of 11
doni49
in reply to: Anonymous

Are you saying that your users each (may) have their own acaddoc.lsp file?  If that's the case then there are two approaches to make that happen.

 

  1. Instead of naming their files acaddoc.lsp, rename them as user_acaddoc.lsp (any name you want really -- just keep it uniform).  Then go ahead and create an acaddoc.lsp file in your main support path.  It will contain your savetime code and then add (findfile "user_acaddoc.lsp").  As long as user_acaddoc.lsp is found (and if it's in the same folder as you WERE using for acaddoc.lsp AND that file was being loaded, then it WILL be found), then it'll be loaded.  This has the added benefit of allowing you to create lisp routines company wide.  I used to have a similar setup.  And as to creating lisp routines company wide, my acaddoc.lsp file didn't have the entire routine or even load it:  it used the AUTOLOAD function.
  2. Add another folder to your support path that is LOWER than the folder assigned to your user.  Then place your acaddoc.lsp file there.  It'll only load if there's not one in the user folder.


Don Ireland
Engineering Design Technician




If a reply solves your issue, please remember to click on "Accept as Solution". This will help other users looking to solve a similar issue. Thank you.


Please do not send a PM asking for assistance. That's what the forums are for. This allows everyone to benefit from the question asked and the answers given.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost