Académique Documents
Professionnel Documents
Culture Documents
AutoCAD Environment Variables is where AutoCAD does some of the storing of persistent values from session
to session. These values are related to commands and preferences that are used in the AutoCAD Environment.
Some of these values are drawing parameters for such commands like Plot and user settings that are normally
updated through Preferences.
AutoLISP Functions
(setenv variable value) - Sets the value of a Environment Variable, value is always a string.
(getenv variable) - Gets the value of a Environment Variable
Variable Default Value Command(s) Description
affected
ACAD “C:\\PROGRAM PREFERENCES Stores the available search paths for the
R12 – 2005 FILES\\AUTOCAD current AutoCAD session. All the paths are
2005\\support;C:\\P…” valid for use. These are the same directories
that show up under the Working Support File
Search Path section under Preferences. See
also the System Variable ACADPREFIX.
Examples:
“C:\my app” – Bad path format
“C:\\my app” – Good path format
“C:/my app” – Good path format
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 2
ACADHELP " C:\\Program PREFERENCES Specifies the location and the name of the
R12 – 2005 Files\\AutoCAD AutoCAD help file to use when Help is
LT: R98 2005\\help\\acad161.chm" called.
ACADLOGFILE " C:\\Documents and PREFERENCES Specifies the location and the name of the
R12 – 2005 Settings\\<UserName>\\Lo log file that AutoCAD generates if the option
LT: R98 cal Settings\\Application is enabled.
Data\\Autodesk\\AutoCAD
2005\\R16.1\\enu\\acad.log
"
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 3
ACADSERVER “@net_acad” PREFERENCES This variable must be set to the name of the
R13 – 2005 Server in which AutoCAD resides on for
AutoCAD to work.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 4
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 5
AutoSnapColor “2” PREFERENCES Color used for the AutoSnap Makers that
R14 – 2005 appear when over a set Object Snap.
LT: R98 - 2002
1 – Red
2 – Yellow
3 – Green
4 – Cyan
5 – Blue
6 – Magenta
7 – White (or invert of background color)
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 6
AutoSnapPolarAng “1.5707963267948966” PREFERENCES The default angle that is used when Polar
R2000 – 2005 Snap is On. See also the System Variable
LT: R2000 - 2002 POLARANG.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 7
AutoSnapShowAperture “1” PREFERENCES Enables the object snap aperture box. See
R14 – 2005 also the System Variable APBOX.
LT: R98 - 2002
0 – Off
1 – On
AutoSnapSize “5” PREFERENCES Controls the size of the object snap maker
R14 – 2005
LT: R98 - 2002 Range: 1 – 20
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 8
AVEMAPS " C:\\Documents and PREFERENCES Specifies the location for the textures and
R13 – 2005 Settings\\<UserName>\\Lo and RENDER render maps that are used for the Render
LT: R2000 - 2002 cal Settings\\Application command.
Data\\Autodesk\\AutoCAD
2005\\R16.1\\enu\\textures
"
AVEPAGEDIR “C:\\ACADR12” PREFERENCES Specifies the location and the name of the
R12 – 13 and RENDER Renderer’s RAM page files.
AVERDFILE nil or “” PREFERENCES Specifies the location of the .RND hard copy
R12 – 13 files are stored.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 9
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 10
ColorBookLocation “C:\\Program Files\\ COLOR Contains the search path that is used by the
R2004 – 2005 AutoCAD 2005\\ Color dialog box and AutoCAD for Color
support\\color” Books.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 11
Coords “1” COORDS and all Enables the Coordinate display in the Status
R2000 – 2005 drawing commands bar area of AutoCAD. See also the System
LT: R2000 - 2002 Variable COORDS.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 12
CustomDictionary "C:\\Documents and PREFERENCES Contains the path of the custom dictionary
R14 – 2005 Settings\\<UserName>\\A and SPELLING that should be used in conjunction with the
LT: R98 - 2002 pplication Data\\Autodesk standard dictionary. See also the System
\\AutoCAD 2005\\R16.1\\ Variable DSTCUST.
enu\\support\\sample.cus"
DatabaseWorkSpacePath "C:\\Documents and PREFERENCES Specifies the location that the Microsoft Data
R2000 – 2005 Settings\\<UserName> and DBCONNECT Link (or UDL) files reside in.
LT: R2000 - 2002 \\Application Data\\
Autodesk\\AutoCAD
2005\\R16.1\\
enu\\Data Links"
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 13
DefaultLoginName nil or “” PREFERENCES Controls the default name used for the Login
R14 - 2005 Name within AutoCAD, if not provided by
LT: R98 Windows.
DefaultPlotStyle “ByColor” PREFERENCES Specifies the default behavior for all objects
R2000 – 2005 and PLOT contained with in the drawing when it is
LT: R2000 - 2002 plotted. See also the System Variable
DEFPLSTYLE.
0 – Objects retained
1 – Objects deleted
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 14
EmergencyFont “simplex.shx” PREFERENCES, This contains the font name that is used for
R14 – 2005 TEXT and substitution when the font that was originally
LT: R98 - 2002 MTEXT used isn’t found. This Environment Variable
is also referred to as the FontAlt or
Alternative Font. See also the System
Variable FONTALT.
FontItalic “0” PREFERENCES Enables the whether or not that the Screen
R14 – 2005 Menu Font is Italic.
LT: R98 - 2002
0 – Not Italicized
1 – Italicized
FontMappingFile "C:\\Documents and PREFERENCES, Specifies the font-mapping file used when
R14 – 2005 Settings\\<UserName>\\A TEXT and font specified in a drawing file is not found.
LT: R98 - 2002 pplication Data\\Autodesk MTEXT See also the System Variable FONTMAP.
\\AutoCAD 2005\\R16.1\\
enu\\support\\acad.fmp"
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 15
GripBlock “0” PREFERENCES Enables the use of Grips with in Blocks. See
R14 – 2005 also the System Variable GRIPBLOCK.
LT: R98 - 2002
0 – Off
1 – On
Grips “1” PREFERENCES Enables the use of Grips on objects. See also
R14 – 2005 the System Variable GRIPS.
LT: R98 - 2002
0 – Off
1 – On
GripSize “3” PREFERENCES Controls the size of the Grips for selecting
R14 – 2005 and modifying objects. See also the System
LT: R98 - 2002 Variable GRIPSIZE. Valid range 1 – 20
HELP "C:\PROGRAM PREFERENCES Specifies the location and the name of the
LT: R2000 - 2002 FILES\AUTOCAD LT AutoCAD LT help file to use when Help is
2000\help\aclt.chm" called.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 16
IDropFilePath nil PREFERENCES Contains the path that ADCENTER uses for
R2004 – 2005 and ADCENTER I-drop content storage when it is
downloaded.
0 – Off
1 – On
0 – No units
1 – Inches
2 – Feet
3 – Miles
4 – Millimeters
5 – Centimeters
6 – Meters
7 – Kilometers
8 – Microinches
9 – Mils
10 – Yards
11 – Angstroms
12 – Nanometers
13 – Microns
14 – Decimeters
15 – Decameters
16 – Hectometers
17 – Gigameters
18 – Astronomical Units
19 – Light Years
20 – Parsecs
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 17
0 – Off
1 – On
ISOHatch “acadiso.pat” BHATCH and Default ISO hatch pattern file loaded.
R14 – 2005 HATCH
LT: R98 - 2002
ISOLinetype “acadiso.lin” LINETYPE or Default ISO line type pattern file loaded
R14 – 2005 LTYPE
LT: R98 - 2002
LastTemplate “” NEW and Start Up Holds the name of the last used drawing
R14 – 2005 dialogs template.
LT: R98 - 2002 (Traditional &
Today)
LastWizard “Quick Setup” NEW and Start Up Holds the name of the last used drawing
R14 dialogs wizard. Values are “Quick Setup” or
LT: R98 (Traditional & “Advanced Setup”.
Today)
Layout background "16777215" PREFERENCES Background color of the layout tabs. Must
R2000 – 2005 be used like “Layout background” in
LT: R2000 - 2002 AutoCAD LT.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 18
LOGFILE "C:\Program PREFERENCES Specifies the location and the name of the
LT: R2000 - 2002 Files\AutoCAD LT log file that AutoCAD LT generates if the
2000\aclt.log" option is enabled.
LogFileOpen “0” PREFERENCES Enables the use of the AutoCAD Log file
R12 – 2005 system. See also the System Variable
LT: R98 - 2002 LOGFILEMODE.
0 – Off
1 – On
LogFilePath "C:\\Documents and PREFERENCES Specifies the path where the acad.log file
R2000 – 2005 Settings\\<UserName will be generated to. See also the System
LT: R2000 - 2002 \\Application Variable LOGFILEPATH.
Data\\Autodesk\\AutoCAD
2005\\R16.1\\enu\\"
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 19
0 – 0.00mm
5 – 0.05mm
9 – 0.09mm
13 – 0.13mm
15 – 0.15mm
18 – 0.18mm
20 – 0.20mm
25 – 0.25mm
30 – 0.30mm
35 – 0.35mm
40 – 0.40mm
50 – 0.50mm
53 – 0.53mm
60 – 0.60mm
70 – 0.70mm
80 – 0.80mm
90 – 0.90mm
100 – 1.00mm
106 – 1.06mm
120 – 1.20mm
140 – 1.40mm
158 – 1.58mm
200 – 2.00mm
211 – 2.11mm
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 20
MaxHatch “10000” BHATCH and Controls the density of the hatch patterns.
R14 – 2005 HATCH This limits the hatch pattern to a maximum
LT: R98 - 2002 of number of entities, (or segments), based
on the set value.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 21
MenuFile "C:\\Documents and PREFERENCES, Main menu that is loaded into AutoCAD.
R14 – 2005 Settings\\<UserName>\\A MENU and See also the System Variable MENUNAME.
LT: R98 - 2002 pplication Data\\Autodesk MENULOAD
\\AutoCAD 2005\\R16.1\\ Note: Setting doesn’t take affect until
enu\\Support\\acad" AutoCAD is restarted.
0 – Off
1 – On
0 – Off
1 – On
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 22
MTextEditor “Internal” MTEXT Specifies the name of the editor that will be
R14 – 2005 used when creating or editing MText entities.
LT: R98 - 2002 See also the System Variable MTEXTED.
NewStyleSheet nil or “” PREFERENCES Default Plot Style that is used when creating
R2000 – 2005 a new drawing.
“”– None
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 23
OLEQUALITY “1” (2004 & prior) PREFERENCES Controls the quality level of an OLE Object
R2000 – 2005 “3” (2005) and PLOT contained with in the drawing. See also the
LT: R2000 - 2002 System Variable OLEQUALITY.
Osmode “4133” OSMODE and Current running object snap setting. See also
R2000 – 2005 DSETTINGS the System Variable OSMODE.
LT: R2000 - 2002
0 – None
1 – Endpoint
2 – Midpoint
4 – Center
8 – Node
16 – Quadrant
32 – Intersection
64 – Insertion
128 – Perpendicular
256 – Tangent
512 – Nearest
1024 – Quick
2048 – Apparent Intersection
4096 – Extension
8192 – Parallel
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 24
OsnapHatch “0” Object Snap with Determines whether Object Snaps are
R2005 Hatch Objects allowed to act upon Hatch objects or not.
OsnapNodeLegacy “0” Object Snap with Controls whether the Object Snap Node can
R2005 Mtext Objects be used at the grip points of Mtext objects.
PAPERUPDATE “0” PREFERENCES Enables the warning box when a paper size
R2000 – 2005 that is currently set exceeds the limits of the
LT: R2000 - 2002 plotter selected. See also the System
Variable PAPERUPDATE.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 25
PickAuto “1” Selecting objects Enables implied selection. See also the
R14 – 2005 and modify System Variable PICKAUTO.
LT: R98 - 2002 commands
0 – Off, can not use window or crossing
selection methods unless you are at a
selection prompt.
1 – On, allows for the use of window and
crossing selection methods even when not
at a select object prompt.
PickBox “3” Selecting objects Controls the size of the Pickbox for selecting
R14 – 2005 and modify objects. See also the System Variable
LT: R98 - 2002 commands PICKBOX.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 26
Plot preview background "16777215" PREFERENCES Background of the plot preview window.
R2000 – 2005 and PREVIEW Must be used like “Plot preview
LT: R2000 - 2002i background” for AutoCAD LT.
PlotLogPath "D:\\Documents and PREFERENCES Specifies the location that the log files for
R2005 Settings\\<UserName>\\Lo PLOT and Plot and Publish should be stored.
cal Settings\\Application PUBLISH
Data\\Autodesk\\AutoCAD
2005\\R16.1\\enu\\"
PlotSpoolerDirectory "C:\\Documents and PREFERENCES Specifies the path that is used to generate the
R14 – 2005 Settings\\<UserName>\\ and PLOT spool files that are used for creating plots.
LT: R98 - 2002 Local Settings\\Temp\\"
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 27
PrinterStyleSheetDir "D:\\Documents and PREFERENCES Specifies the location in which the Plot
R2000 – 2005 Settings\\<UserName> and PLOT Styles files for the drawings can be found.
LT: R2000 - 2002 \\Application Data\\
Autodesk\\AutoCAD
2005\\R16.1\\enu\\Plot
Styles"
ProfileStorage "C:\\Documents and PREFERENCES Points to the location on the machine where
R2004 – 2005 Settings\\<UserName> the Fixed Profile parameters file is stored.
\\Application Data\\ This file contains information about the
Autodesk\\AutoCAD current drawing environment.
2005\\R16.1\\enu\\Support
\\Profiles\\
FixedProfile.aws"
PrototypeDwg “acad.dwg” PREFERENCE Specifies the base drawing file that will be
R13 used to create new drawings from.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 28
PSOUT_PrologFileName nil PREFERENCES Specifies the prolog section to read from the
R14 – 2005 and PSOUT acad.psf file when using the PSOUT
LT: R98 - 2002 command.
QnewTemplate nil QNEW Contains the location for the template that is
R2004 – 2005 used by the QNEW command.
RENDERCFG "C:\\AutoCAD R13\\Win" PREFERENCES Controls where AutoCAD stores and locates
R13 and RENDER the AutoCAD Render configuration
file,render.cfg , created when you configure
AutoCAD Render for your rendering display
and hard-copy drivers.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 29
SaveFilePath "C:\\Documents and PREFERENCES Specifies the path that is used to save the
R2000 – 2005 Settings\\<UserName> Autosave files to. See also the System
LT: R2000 - 2002 \\Local Settings\\Temp\\" Variable SAVEFILEPATH.
Scrollbars “1” PREFERENCES Enables the scroll bars with in the AutoCAD
R13 – 2005 drawing window.
LT: R98 - 2002
0 – Off
1 – On
0 – MDE is allowed
1 – MDE is not allowed
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 30
0 – Off
1 – On
0 – Off
1 – On
ShowFullPathInTitle “1” PREFERENCES Enables whether or not the full path of the
R2000i – 2005 drawing is displayed in the caption of the
LT: R2000 - 2002i AutoCAD session.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 31
ShowPrintBorder “1” PREFERENCES Displays the outline edge of the paper size in
R2000 – 2005 layout tabs.
LT: R2000 - 2002
0 – Outline of paper is not displayed.
1 – Outline of paper is displayed.
0 – Off
1 – On
ShowTabs “1” PREFERENCES Enables the tabs at the bottom of the drawing
R2000 – 2005 window to allow for switching between
LT: R2000 - 2002 Model and the other layout tabs.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 32
0 – Off
1 – On
TempDirectory "C:\\Documents and PREFERENCES Specifies the path that is used to save the
R14 – 2005 Settings\\<UserName> temporary files to. See also the System
LT: R98 - 2002 \\Local Settings\\Temp\\" Variable TEMPPREFIX.
TemplatePath "C:\\Documents and NEW and TODAY Specifies the location in which the drawing
R14 – 2005 Settings\\<UserName> templates can be found in for creating new
LT: R98 - 2002 \\Local Settings\\ drawings.
Application Data\\
Autodesk\\AutoCAD
2005\\R16.1\\enu\\
Template"
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 33
TextWindow.FontItalic “0” PREFERENCES Enables the whether or not that the Text
R14 – 2005 Window Font is Italic.
LT: R98 - 2002
0 – Not Italicized
1 – Italicized
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 34
Use TODAY as Startup dialog “1” NEW, OPEN and Controls whether or not the Today screen is
R2000i – 2002 TODAY used at Start up or creating new drawings.
LT: R2000 - 2002i Must be used like “Use TODAY as Startup
dialog” for AutoCAD LT.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.
AutoCAD Productivity AutoCAD Environment Variables Appendix K - 35
As you can see the Environments Variables with inside of AutoCAD have changed somewhat over the last
several releases and with the addition of new commands into AutoCAD there is a guarantee that we will see
more Environment Variables in the future. The table also provides a good reference to the Environment
Variables that will most likely be there in the future and the ones that could be removed also. The Environment
Variables are exciting to look at to see how AutoCAD has changed, and they have provided a lot of people with
the ability to quickly change some of the preferences in the AutoCAD environment through the use of macros
and scripts without the need of learning programming like you would with VBA/VB or ObjectARX.
Notes:
All rights reserved by HyperPics for the material and contents. Do not make copies of this material.