System Variables in AutoCAD

November 1, 2024 Jeff Morris

AutoCAD (and its vertical applications Map 3D, Plant 3D, Civil 3D, Architecture, etc.) is a venerable and complicated program. It was first released in December of 1982! And the amazing thing is that many of the original commands still run to this day.  

Over the years, the program has grown significantly in functionality and complexity. As new functions are added, new potential workflows are introduced. To accommodate different workflows, variables can be set to control the behavior of AutoCAD. The more you understand how to set and control these system variables, the more proficient you will be. 

This is the first of three blogs explaining how to manage these variables: 

  1. This one explains the concept of system variables and how to change their values. 

 

Examples of system variables 

There are close to 900 system variables! They essentially control the behavior of AutoCAD. For example, the FILEDIA variable controls if the Select File dialog box is invoked when opening or saving a drawing (Save As) 

  • It can be on (variable set to 1) or off (variable set to 0). 

  • This value is stored in the registry, which means it is set for the program.  

 

Some values are stored in the drawing and can differ from drawing to drawing. Other values are not stored at all, like ACADPREFIX, which is the prefix of the drawing; in other words, the path where the drawing resides 

Some values are read-only and cannot be changed within the system (like the ACADPREFIX). 

To change a system variable, you simply type in the name of the variable and then the desired value to change it to. This can be done at the command line. But of course, that only works when you know what the variable is (of the close to 900 of them!) that you want to change. 

Accessing the system variables 

A convenient way to see all the system variables is found in the Tools panel on the Express Tools tab, as shown below. The command is sysvdlg, which you can type in at the command line. 

 

The System Variables dialog box lists all the variables along the left panel. You can type in a search to find a variable and use wildcards to simplify the search. For example, CMD* will list all the variables starting with CMD, as shown above. 

The System Variables dialog box lists the following: 

  1. New Value: What you are changing the variable to (it is greyed out if it is read-only). 

  1. Current Value: What the variable is currently set to (before you opened the dialog box). 

  1. Initial Value: What the default setting is for the variable. 

  1. Saved In: Where the system variable is saved. The options are: 

a. Registry: The variable is the same for all drawings. 

b. Drawing: The variable may be different for different drawings. 

c. Not saved: The variable cannot be changed (and the New Value is set to read-only). 

5. Type: The variable can be one of the following types: 

a. Integer
b. String
c. Real number
d. Switch  

  1. The description panel gives a detailed description of the system variable along with the options and how these options effect AutoCAD. THIS IS INVALUABLE! 

  1. You can save the variable settings to an external file. 

  1. You can read variable settings from an external file. 

  

Conclusion 

AutoCAD is a complicated program. It has many settings controlled by system variables. Once these variables are better understood, they can be useful in your mastery of the program  

About the Author

Jeff Morris

Learning Content Developer<br><br>Jeff specializes in infrastructure tools such as Civil 3D and Infraworks, delivering training classes and contributing to the learning guides for these Autodesk software applications. Jeff has worked for several Autodesk resellers and has had roles of both CAD and BIM Manager with Civil and Architectural firms.

Follow on Linkedin More Content by Jeff Morris
Previous Article
A Guide to Selecting & Installing the Correct Revit Version
A Guide to Selecting & Installing the Correct Revit Version

If you have installed a Revit update but need to go back to the 2025.0 build, use the following steps to re...

Next Article
Macros and Scripts
Macros and Scripts

Creating macros is a great way to streamline your AutoCAD workflows. Learn more in this blog.

×

Sign up for email updates

First Name
Last Name
Country
Thank you!
Error - something went wrong!