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

Reset System variables

2 REPLIES 2
Reply
Message 1 of 3
jjorovi
5166 Views, 2 Replies

Reset System variables

Hi.

How I can reset all system variables.
I refer to the variables that affect the program globally. I want all remain at the default value.
One lisp can help?

2 REPLIES 2
Message 2 of 3
AR12
in reply to: jjorovi

What we do at my company is we have a lisp file that we run if we want to reset the variables, all it does is use (setvar) and sets each variable that we may change using a LIsp Program back to what we consider the default.

Thanks,
Adam Richardson

If needed: AutoCAD 2017 User using Visual LISP for editing LISP and DCL files
Message 3 of 3
bobdobbs
in reply to: jjorovi

If you have express tools loaded, then you could use the SYSVDLG command to set a baseline. Have it "SAVE-ALL" to a script file (not the default) and you could run it anytime you need to reset everything. You could groom the script too, if you only wanted to reset certain variables or whatever.

 

Seems express tools already has a file with all the default settings too.

 

From Express tools help:

 

Note:
Two files, defaults.svf and defaults.scr, are installed in the Express directory along with the System Variable Editor. These files contain AutoCAD's the default system variable settings for a new installation of AutoCAD. To return AutoCAD to a 'pristine' system variable state you can either read the defaults.svf file into SYSVDLG or run the defaults.scr file from the AutoCAD command line using the SCRIPT command. Be aware that this will overwrite any system variable settings in the drawing you are currently editing.

 

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

Post to forums  

Autodesk Design & Make Report

”Boost