Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Valued Contributor
Posts: 58
Registered: ‎06-15-2012
Message 1 of 3 (930 Views)

Reset System variables

930 Views, 2 Replies
10-11-2012 07:21 AM


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?

Valued Contributor
Posts: 90
Registered: ‎12-28-2009
Message 2 of 3 (923 Views)

Re: Reset System variables

10-11-2012 08:09 AM 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.

Adam Richardson

If needed: AutoCAD 2013 User using Visual LISP for editing LISP and DCL files
Posts: 15
Registered: ‎09-27-2012
Message 3 of 3 (880 Views)

Re: Reset System variables

10-15-2012 08:14 AM 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:


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.


Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.