Hurricane for Autodesk® AutoCAD®
359 system variables (SYSVARs) • What each value does • Read-only flags • Version history
Last updated: September 25, 2026
SETVAR, press Enter, type ?, press Enter, then press Enter again to accept * (all). AutoCAD prints the full list in the text window (press F2 to open it).DIMFRAC, then enter the new value (or press Enter to keep the current one).SETVAR FILEDIA 0 in a script, (setvar "FILEDIA" 0) to set a value in LISP, and (getvar "FILEDIA") to read it.SYSVARMONITOR warns you when key variables change from the values you expect.(getvar "VARNAME").
📚 Companion resource: AutoCAD Commands List: 403 commands rated for batch-script compatibility, with hyphen variants and dialog warnings.
| Variable | Description | Type | Read-Only | Script Use | Version / Status | Notes & Scripting Tips |
|---|---|---|---|---|---|---|
| A | ||||||
| ACADLSPASDOC | Controls whether acad.lsp loads into every drawing (1) or only the first drawing opened (0) | Integer (0-1) | No | SET | Present since 2000 | 0=first drawing only; 1=every drawing. Set to 0 in large batch runs to skip per-drawing LISP loading overhead. |
| ACADPREFIX | Stores the directory path specified by the ACAD environment variable | String | Yes | READ | Present since 2000 | Read-only informational path variable. |
| ACADVER | Stores the AutoCAD version number string (e.g. 24.0 for AutoCAD 2024) | String | Yes | READ | Present since 2000 | Use (getvar "ACADVER") in LISP to detect version and branch accordingly. Read-only. |
| ACISOUTVER | Controls the ACIS version of SAT files created by ACISOUT | Integer | No | SET | Present since 2000 | |
| AFLAGS | Sets attribute flags for ATTDEF (bit-code: 1=invisible 2=constant 4=verify 8=preset) | Integer | No | SET | Present since 2000 | |
| ANGBASE | Sets the base angle 0 with respect to the current UCS (in radians) | Real | No | SET | Present since 2000 | |
| ANGDIR | Sets positive angle direction: 0=counter-clockwise 1=clockwise | Integer (0-1) | No | SET | Present since 2000 | |
| ANNOAUTOSCALE | Controls automatic addition of scales to annotative objects when CANNOSCALE changes | Integer | No | SET | Added 2008 | Set to -4 to prevent automatic scale additions during batch runs. |
| ANNOTATIONSCALE | Returns the current annotation scale name for the active space | String | No | SET | Added 2008 | Can be set to a scale string such as "1:100". |
| ANNOTATIVEDWG | Specifies whether the drawing behaves as an annotative block | Integer (0-1) | No | SET | Added 2008 | |
| APBOX | Turns the AutoSnap aperture box on (1) or off (0) | Integer (0-1) | No | SET | Present since 2000 | |
| APERTURE | Sets the object snap target height in pixels (1-50) | Integer | No | SET | Present since 2000 | |
| AREA | Stores the last area computed by AREA, LIST, or DBLIST | Real | Yes | READ | Present since 2000 | Read-only result of the last AREA command. |
| ARRAYEDITSTATE | Indicates whether an array object is currently being edited | Integer | Yes | READ | Added 2012 | Read-only status flag. |
| ATTDIA | Controls whether INSERT uses a dialog for attribute entry: 0=command line 1=dialog | Integer (0-1) | No | KEY | Present since 2000 | CRITICAL: Set to 0 at the start of any script that inserts attributed blocks. Without this, the attribute dialog pauses the script waiting for user input. |
| ATTMODE | Controls display of attributes: 0=off 1=normal 2=all visible | Integer (0-2) | No | SET | Present since 2000 | |
| ATTREQ | Controls whether INSERT prompts for attribute values: 0=use defaults (no prompt) 1=prompt | Integer (0-1) | No | SET | Present since 2000 | Set to 0 to skip all attribute prompts during batch insertion. More aggressive than ATTDIA alone. |
| AUDITCTL | Controls whether AUDIT creates an audit report (.ADT) file: 0=no 1=yes | Integer (0-1) | No | SET | Present since 2000 | |
| AUNITS | Sets units for angles: 0=decimal degrees 1=deg/min/sec 2=grads 3=radians 4=surveyor | Integer (0-4) | No | SET | Present since 2000 | |
| AUPREC | Sets number of decimal places for angular units display (0-8) | Integer | No | SET | Present since 2000 | |
| AUTOSNAP | Controls AutoSnap marker, tooltip, and magnet behavior (bit-code sum) | Integer | No | SET | Present since 2000 | 1=marker 2=tooltip 4=magnet 8=polar 16=tracking 32=tooltips |
| B | ||||||
| BACKGROUNDPLOT | Controls background plotting: 0=disabled 1=plot only 2=publish only 3=both | Integer (0-3) | No | SET | Added 2010 | Allows the AutoCAD session to stay responsive while plotting in the background. |
| BACKZ | Stores the back clipping plane offset from the target plane for the current viewport | Real | Yes | READ | Present since 2000 | Read-only viewport property. |
| BINDTYPE | Controls how xref names are handled when binding: 0=bind style (Xref|Block) 1=insert style | Integer (0-1) | No | SET | Present since 2000 | Important when batch-binding xrefs. Determines whether the separator is a pipe | or underscore _. |
| BLIPMODE | Controls whether marker blips appear at pick points | Integer (0-1) | No | REM | Removed 2015 | Blip display permanently removed from AutoCAD 2015+. Setting has no effect. |
| C | ||||||
| CAMERADISPLAY | Controls whether camera objects are displayed: 0=hidden 1=shown | Integer (0-1) | No | SET | Added 2007 | |
| CAMERAHEIGHT | Specifies the default height for new camera objects | Real | No | SET | Added 2007 | |
| CANNOSCALE | Sets the current annotation scale name for model space or paper space | String | No | SET | Added 2008 | Setting this in a script changes the active annotation scale. Example value: "1:100". |
| CANNOSCALEVALUE | Returns the current annotation scale as a numeric ratio | Real | Yes | READ | Added 2008 | Read-only computed value of CANNOSCALE. |
| CDATE | Stores the calendar date and time as a real number in YYYYMMDD.HHMMSSnn format | Real | Yes | READ | Present since 2000 | Use (getvar "CDATE") in LISP for date-stamping. More readable than DATE (which is Julian). |
| CECOLOR | Sets the color of new objects | String | No | SET | Present since 2000 | Accepts color numbers (1-255) or BYLAYER / BYBLOCK. |
| CELTSCALE | Sets the current object linetype scale factor (multiplied by the global LTSCALE) | Real | No | SET | Present since 2000 | |
| CELTYPE | Sets the linetype of new objects | String | No | SET | Present since 2000 | |
| CELWEIGHT | Sets the lineweight of new objects (-1=BYLAYER -2=BYBLOCK or a specific value in hundredths of mm) | Integer | No | SET | Present since 2000 | |
| CHAMFERA | Sets the first chamfer distance | Real | No | SET | Present since 2000 | |
| CHAMFERB | Sets the second chamfer distance | Real | No | SET | Present since 2000 | |
| CHAMFERC | Sets the chamfer length (when CHAMMODE=1) | Real | No | SET | Present since 2000 | |
| CHAMFERD | Sets the chamfer angle (when CHAMMODE=1) | Real | No | SET | Present since 2000 | |
| CHAMMODE | Sets the chamfer input method: 0=two distances 1=length and angle | Integer (0-1) | No | SET | Present since 2000 | |
| CIRCLERAD | Sets the default circle radius (0=no default) | Real | No | SET | Present since 2000 | |
| CLAYER | Sets the current layer | String | No | KEY | Present since 2000 | One of the most commonly set variables in scripts. Equivalent to -LAYER S layername. |
| CMDACTIVE | Stores a bit-code indicating whether a command, script, or dialog is currently active | Integer | Yes | READ | Present since 2000 | Useful in LISP to detect script state. Read-only. |
| CMDDIA | Controls PLOT and HATCH dialog display: 0=suppress dialog 1=show dialog | Integer (0-1) | No | KEY | Present (limited effect in modern versions) | In modern AutoCAD use -PLOT and -HATCH instead. CMDDIA has inconsistent behavior in AutoCAD 2000+. |
| CMDECHO | Controls whether AutoCAD echoes prompts during AutoLISP (command) calls: 0=suppress 1=echo | Integer (0-1) | No | KEY | Present since 2000 | CRITICAL: Set to 0 at the start of LISP routines to prevent command-line clutter during unattended runs. Also provides a significant speed improvement in batch processing. |
| CMDNAMES | Displays the names of the currently active and transparent commands | String | Yes | READ | Present since 2000 | Read-only. |
| CMLJUST | Specifies multiline justification: 0=top 1=middle 2=bottom | Integer (0-2) | No | SET | Present since 2000 | |
| CMLSCALE | Controls the overall width of a multiline object | Real | No | SET | Present since 2000 | |
| CMLSTYLE | Sets the current multiline style name | String | No | SET | Present since 2000 | |
| COORDS | Controls when coordinates update on the status line: 0=static 1=continuous 2=polar | Integer (0-2) | No | SET | Present since 2000 | |
| COPYMODE | Controls whether COPY repeats automatically: 0=repeat until Esc 1=single copy only | Integer (0-1) | No | SET | Added 2011 | |
| CPLOTSTYLE | Controls the current plot style for new objects | String | No | SET | Present since 2000 | |
| CPROFILE | Stores the name of the current user profile | String | Yes | READ | Present since 2000 | Read-only. |
| CSHADOW | Controls shadow display for 3D objects: 0=none 1=casts shadows 2=receives shadows 3=both | Integer (0-3) | No | SET | Added 2007 | |
| CTAB | Returns the name of the current Model or Layout tab | String | Yes | READ | Present since 2000 | Use (getvar "CTAB") in LISP to determine if the script is in model space or a named layout. |
| CURSORSIZE | Determines crosshair size as a percentage of the screen (1-100) | Integer | No | SET | Present since 2000 | |
| CVPORT | Sets the identification number of the current viewport | Integer | No | SET | Present since 2000 | |
| D | ||||||
| DATE | Stores the current date and time as a Julian real number | Real | Yes | READ | Present since 2000 | Use CDATE for a more human-readable format. Read-only. |
| DBMOD | Indicates drawing modification status (bit-code; 1=entity database modified) | Integer | Yes | READ | Present since 2000 | Use (getvar "DBMOD") in LISP to check whether the drawing has unsaved changes. |
| DCTMAIN | Displays the file name of the current main spelling dictionary | String | No | SET | Present since 2000 | |
| DEFLPLSTYLE | Specifies the default plot style for new layers | String | No | SET | Present since 2000 | |
| DEFPLSTYLE | Specifies the default plot style for new objects | String | No | SET | Present since 2000 | |
| DELOBJ | Controls whether source objects are deleted after 3D solid creation | Integer | No | SET | Present since 2000 / Changed 2012 | AutoCAD 2012+ accepts negative values (-1 to -3) to delete without prompting. Useful in batch solid-creation scripts. |
| DEMANDLOAD | Controls xref demand loading: 0=off 1=on if source modified 2=always | Integer (0-2) | No | SET | Present since 2000 | |
| DIASTAT | Stores the exit method of the last dialog box: 0=Cancel 1=OK | Integer | Yes | READ | Present since 2000 | Read-only. |
| DIMADEC | Number of precision places for angular dimension values | Integer | No | SET | Present since 2000 | |
| DIMALT | Controls display of alternate units in dimensions: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| DIMALTD | Number of decimal places in alternate dimension units | Integer | No | SET | Present since 2000 | |
| DIMALTF | Multiplier for alternate dimension units | Real | No | SET | Present since 2000 | |
| DIMALTRND | Rounding value for alternate dimension units | Real | No | SET | Present since 2000 | |
| DIMALTTD | Decimal places for tolerance values in alternate units | Integer | No | SET | Present since 2000 | |
| DIMALTU | Units format for alternate dimension units (1-8) | Integer | No | SET | Present since 2000 | |
| DIMALTZ | Zero suppression for alternate unit dimension values | Integer | No | SET | Present since 2000 | |
| DIMAPOST | Text prefix or suffix for alternate dimension measurement | String | No | SET | Present since 2000 | |
| DIMASO | Controls associativity of dimension objects (legacy): replaced by DIMASSOC | Integer (0-1) | No | OBS | Deprecated; use DIMASSOC | Replaced by DIMASSOC in AutoCAD 2002. Still accepted as an alias but obsolete. |
| DIMASSOC | Controls dimension associativity: 0=exploded 1=non-associative 2=associative | Integer (0-2) | No | SET | Added 2002 | Replaced the legacy DIMASO variable. |
| DIMASZ | Controls arrowhead size in dimensions | Real | No | SET | Present since 2000 | |
| DIMATFIT | Determines text/arrow arrangement when space is insufficient (0-3) | Integer (0-3) | No | SET | Present since 2000 | Replaced the obsolete DIMFIT variable. |
| DIMAUNIT | Units format for angular dimensions: 0=decimal degrees 1=DMS 2=grads 3=radians | Integer (0-4) | No | SET | Present since 2000 | |
| DIMAZIN | Zero suppression for angular dimensions | Integer | No | SET | Present since 2000 | |
| DIMBLK | Sets arrowhead block at dimension line ends | String | No | SET | Present since 2000 | |
| DIMBLK1 | First arrowhead block when DIMSAH is on | String | No | SET | Present since 2000 | |
| DIMBLK2 | Second arrowhead block when DIMSAH is on | String | No | SET | Present since 2000 | |
| DIMCEN | Controls center mark or centerline drawing: negative=centerlines positive=marks 0=none | Real | No | SET | Present since 2000 | |
| DIMCLRD | Color for dimension lines and arrowheads | Integer | No | SET | Present since 2000 | |
| DIMCLRE | Color for extension lines | Integer | No | SET | Present since 2000 | |
| DIMCLRT | Color for dimension text | Integer | No | SET | Present since 2000 | |
| DIMDEC | Number of decimal places for primary dimension units | Integer | No | SET | Present since 2000 | |
| DIMDLE | Dimension line extension beyond oblique strokes | Real | No | SET | Present since 2000 | |
| DIMDLI | Spacing of dimension lines in baseline dimensions | Real | No | SET | Present since 2000 | |
| DIMDSEP | Single-character decimal separator for decimal dimensions | String | No | SET | Present since 2000 | |
| DIMEXE | Extension line extension beyond the dimension line | Real | No | SET | Present since 2000 | |
| DIMEXO | Extension line offset from the origin points | Real | No | SET | Present since 2000 | |
| DIMFIT | Obsolete: replaced by DIMATFIT and DIMTMOVE | Integer | No | REM | Removed (obsolete) | Use DIMATFIT and DIMTMOVE instead. |
| DIMFRAC | Sets fraction format when DIMLUNIT is 4 or 5: 0=horizontal 1=diagonal 2=not stacked | Integer (0-2) | No | SET | Present since 2000 | |
| DIMGAP | Distance from dimension text to the gap in the dimension line | Real | No | SET | Present since 2000 | |
| DIMJUST | Horizontal positioning of dimension text (0-4) | Integer (0-4) | No | SET | Present since 2000 | |
| DIMLDRBLK | Arrow type for leaders | String | No | SET | Present since 2000 | |
| DIMLFAC | Scale factor for linear dimension measurements | Real | No | SET | Present since 2000 | |
| DIMLIM | Generates dimension limits as default text: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| DIMLUNIT | Sets units for all dimension types except angular (1-6) | Integer (1-6) | No | SET | Present since 2000 | 1=scientific 2=decimal 3=engineering 4=arch stacked 5=fractional 6=Windows desktop. Replaced obsolete DIMUNIT. |
| DIMLWD | Lineweight for dimension lines | Integer | No | SET | Present since 2000 | |
| DIMLWE | Lineweight for extension lines | Integer | No | SET | Present since 2000 | |
| DIMPOST | Text prefix or suffix for primary dimension measurement | String | No | SET | Present since 2000 | |
| DIMRND | Rounds all dimensioning distances to the specified value | Real | No | SET | Present since 2000 | |
| DIMSAH | Controls display of different arrowhead blocks at each dimension end: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| DIMSCALE | Overall scale factor applied to all dimensioning variables | Real | No | SET | Present since 2000 | Set to match the drawing plot scale. 0=scales by the viewport scale factor. |
| DIMSD1 | Suppresses first dimension line: 0=show 1=suppress | Integer (0-1) | No | SET | Present since 2000 | |
| DIMSD2 | Suppresses second dimension line: 0=show 1=suppress | Integer (0-1) | No | SET | Present since 2000 | |
| DIMSE1 | Suppresses display of first extension line: 0=show 1=suppress | Integer (0-1) | No | SET | Present since 2000 | |
| DIMSE2 | Suppresses display of second extension line: 0=show 1=suppress | Integer (0-1) | No | SET | Present since 2000 | |
| DIMSOXD | Suppresses dimension lines outside extension lines: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| DIMSTYLE | Shows or sets the current dimension style name | String | No | SET | Present since 2000 | Can be set via SETVAR or -DIMSTYLE to activate a named dimension style. |
| DIMTAD | Vertical position of text relative to the dimension line (0-4) | Integer (0-4) | No | SET | Present since 2000 | |
| DIMTDEC | Number of decimal places in tolerance values | Integer | No | SET | Present since 2000 | |
| DIMTFAC | Scale factor for dimension fraction and tolerance text height | Real | No | SET | Present since 2000 | |
| DIMTIH | Controls text position inside extension lines: 0=aligned with dimension 1=horizontal | Integer (0-1) | No | SET | Present since 2000 | |
| DIMTIX | Forces text between extension lines: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| DIMTM | Minimum (lower) tolerance limit for dimension text | Real | No | SET | Present since 2000 | |
| DIMTMOVE | Sets dimension text movement rules: 0=moves line 1=adds leader 2=moves freely | Integer (0-2) | No | SET | Present since 2000 | Replaced part of the obsolete DIMFIT variable. |
| DIMTOFL | Draws dimension line between extensions even when text is outside: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| DIMTOH | Controls text position outside extension lines: 0=aligned 1=horizontal | Integer (0-1) | No | SET | Present since 2000 | |
| DIMTOL | Appends tolerances to dimension text: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| DIMTOLJ | Vertical justification for tolerance values (0-2) | Integer (0-2) | No | SET | Present since 2000 | |
| DIMTP | Maximum (upper) tolerance limit for dimension text | Real | No | SET | Present since 2000 | |
| DIMTSZ | Size of oblique strokes used instead of arrowheads | Real | No | SET | Present since 2000 | |
| DIMTVP | Vertical position of dimension text above or below the dimension line | Real | No | SET | Present since 2000 | |
| DIMTXSTY | Text style used for dimension annotations | String | No | SET | Present since 2000 | |
| DIMTXT | Height of dimension text | Real | No | SET | Present since 2000 | |
| DIMTZIN | Zero suppression in tolerance values | Integer | No | SET | Present since 2000 | |
| DIMUNIT | Obsolete: replaced by DIMLUNIT and DIMFRAC | Integer | No | REM | Removed (obsolete) | Use DIMLUNIT and DIMFRAC instead. |
| DIMUPT | Controls user-positioned text: 0=cursor moves dimension line 1=cursor moves text | Integer (0-1) | No | SET | Present since 2000 | |
| DIMZIN | Zero suppression in primary unit dimension values | Integer | No | SET | Present since 2000 | |
| DISPSILH | Controls display of silhouette curves on solid objects in wireframe: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| DISTANCE | Stores the distance computed by the last DIST command | Real | Yes | READ | Present since 2000 | Read-only result of last DIST. |
| DONUTID | Default inside diameter of a donut | Real | No | SET | Present since 2000 | |
| DONUTOD | Default outside diameter of a donut | Real | No | SET | Present since 2000 | |
| DRAGMODE | Controls how dragged objects are displayed: 0=off 1=on when you enter DRAG 2=auto | Integer (0-2) | No | SET | Present since 2000 | Still in AutoCAD 2026. Default 2 (auto); rarely needs changing in scripts. |
| DRAWORDERCTL | Controls default draw order for new objects (0-3) | Integer (0-3) | No | SET | Added 2012 | 0=none 1=inherit from above 2=send below 3=send above. |
| DWGCHECK | Determines whether a drawing was last edited by a non-AutoCAD product | Integer (0-2) | No | SET | Present since 2000 | |
| DWGCODEPAGE | Stores the same value as SYSCODEPAGE (backward compatibility) | String | Yes | READ | Present since 2000 | Read-only. |
| DWGNAME | Stores the drawing file name as entered by the user (without path) | String | Yes | READ | Present since 2000 | Use (getvar "DWGNAME") to get the current file name during batch processing. |
| DWGPREFIX | Stores the drive and directory path of the current drawing | String | Yes | READ | Present since 2000 | Use (getvar "DWGPREFIX") to build full file paths during batch runs. |
| DWGTITLED | Indicates whether the current drawing has been named: 0=no 1=yes | Integer (0-1) | Yes | READ | Present since 2000 | Read-only. |
| DYNMODE | Controls Dynamic Input display: 0=off 1=pointer only 2=dimensional only 3=both | Integer (0-3) | No | SET | Added 2006 | Set to 0 in scripts to suppress dynamic input and improve performance. |
| DYNPICOORDS | Controls pointer input coordinate format: 0=relative 1=absolute | Integer (0-1) | No | SET | Added 2006 | |
| DYNPIFORMAT | Controls pointer input format: 0=polar 1=Cartesian | Integer (0-1) | No | SET | Added 2006 | |
| DYNPIVIS | Controls when pointer input tooltips display: 0=never 1=at prompts 2=always | Integer (0-2) | No | SET | Added 2006 | |
| DYNPROMPT | Controls display of prompts in Dynamic Input tooltips: 0=off 1=on | Integer (0-1) | No | SET | Added 2006 | |
| E | ||||||
| EDGEMODE | Controls how TRIM and EXTEND determine cutting boundaries: 0=no extension 1=extend | Integer (0-1) | No | SET | Present since 2000 | |
| ELEVATION | Stores the current elevation relative to current UCS for the current viewport | Real | No | SET | Present since 2000 | |
| ERRNO | Stores the error code set by the last AutoLISP function call | Integer | Yes | READ | Present since 2000 | Essential for error detection in LISP scripts. Cleared by the next AutoLISP call. Read-only. |
| EXPERT | Suppresses warning and confirmation prompts: higher values suppress more dialogs | Integer (0-5) | No | KEY | Present since 2000 | CRITICAL for unattended scripting. 0=all prompts shown. 1=suppresses 'About to regen?' and layer-off warnings. 2=also suppresses PURGE confirm. 3=also suppresses LINETYPE/DIMSTYLE warnings. 4=UCS save/rename. 5=-BLOCK redefinition warning. |
| EXPLMODE | Controls whether EXPLODE supports non-uniformly scaled blocks: 0=no 1=yes | Integer (0-1) | No | SET | Present since 2000 | |
| EXTMAX | Stores the upper-right point of the drawing extents | Point | Yes | READ | Present since 2000 | Updated after ZOOM Extents or REGEN. Read-only. |
| EXTMIN | Stores the lower-left point of the drawing extents | Point | Yes | READ | Present since 2000 | Updated after ZOOM Extents or REGEN. Read-only. |
| EXTNAMES | Sets maximum length for named object names: 0=31 chars (R13 limit) 1=255 chars (modern) | Integer (0-1) | No | SET | Present since 2000 | Should always be 1 in modern drawings. |
| F | ||||||
| FACETRES | Adjusts smoothness of shaded objects and hidden-line removal (0.01-10.0) | Real | No | SET | Present since 2000 | |
| FILEDIA | Suppresses file dialog boxes: 0=no dialogs (use command-line filename) 1=show dialogs | Integer (0-1) | No | KEY | Present since 2000 | CRITICAL: the most important scripting variable. Set to 0 before any command that opens a file dialog: SAVEAS, EXPORT, IMPORT, ACISIN, ACISOUT, BMPOUT, WMFIN, WMFOUT, STLOUT, PSOUT, PSIN, MSLIDE, VSLIDE, SCRIPT. Reset to 1 at the end of the script. |
| FILLETRAD | Stores the current fillet radius | Real | No | SET | Present since 2000 | |
| FILLMODE | Specifies whether hatches and wide polylines are filled: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| FONTALT | Specifies the alternate font used when a specified font cannot be found | String | No | SET | Present since 2000 | |
| FONTMAP | Specifies the font mapping file path | String | No | SET | Present since 2000 | |
| FRONTZ | Stores the front clipping plane offset from the target plane for the current viewport | Real | Yes | READ | Present since 2000 | Read-only viewport property. |
| G | ||||||
| GRIDMODE | Turns grid display on (1) or off (0) | Integer (0-1) | No | SET | Present since 2000 | |
| GRIDUNIT | Specifies the grid spacing (X and Y) for the current viewport | Point | No | SET | Present since 2000 | |
| GRIPCOLOR | Controls the color of unselected grips (outline boxes) | Integer | No | SET | Present since 2000 | |
| GRIPHOT | Controls the color of selected (hot) grips | Integer | No | SET | Present since 2000 | |
| GRIPS | Controls use of selection set grips: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| GRIPSIZE | Sets the size of the grip box in pixels (1-255) | Integer | No | SET | Present since 2000 | |
| H | ||||||
| HIGHLIGHT | Controls object highlighting on selection: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| HIGHLIGHTINTENSITY | Controls the contrast at which highlighted objects are displayed (0-100) | Integer | No | SET | Added 2018 | |
| HPANG | Specifies the default hatch pattern angle | Real | No | SET | Present since 2000 | |
| HPASSOC | Controls whether hatch patterns are associative: 0=non-associative 1=associative | Integer (0-1) | No | SET | Added 2002 | |
| HPBOUND | Controls object type created by BHATCH/BOUNDARY: 0=region 1=polyline | Integer (0-1) | No | SET | Present since 2000 | |
| HPDOUBLE | Specifies hatch doubling for user-defined patterns: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| HPGAPTOL | Sets a gap tolerance for hatch boundary detection | Real | No | SET | Added 2004 | |
| HPNAME | Sets a default hatch pattern name | String | No | SET | Present since 2000 | |
| HPSCALE | Specifies the default hatch pattern scale factor | Real | No | SET | Present since 2000 | |
| HPSPACE | Specifies hatch line spacing for user-defined patterns | Real | No | SET | Present since 2000 | |
| HYPERLINKBASE | Specifies the base path used for all relative hyperlinks in the drawing | String | No | SET | Present since 2000 | |
| I | ||||||
| IMAGEHLT | Controls whether the entire raster image or only its frame is highlighted: 0=frame 1=full | Integer (0-1) | No | SET | Present since 2000 | |
| INDEXCTL | Controls layer and spatial index creation: 0=none 1=layer 2=spatial 3=both | Integer (0-3) | No | SET | Present since 2000 | |
| INSBASE | Stores the insertion base point set by the BASE command | Point | No | SET | Present since 2000 | |
| INSNAME | Sets a default block name for INSERT | String | No | SET | Present since 2000 | |
| INSUNITS | Specifies drawing units for drag-and-drop from DesignCenter (0-21) | Integer (0-21) | No | SET | Present since 2000 | 0=unitless 1=inches 2=feet 4=mm 5=cm 6=meters. Set to match the drawing's native units for consistent block insertion. |
| ISAVEBAK | Controls whether a .bak backup file is created during incremental saves: 0=no 1=yes | Integer (0-1) | No | SET | Present since 2000 | |
| ISAVEPERCENT | Determines wasted space tolerance in a drawing file before a full save is forced (0-100) | Integer | No | SET | Present since 2000 | |
| ISOLINES | Specifies number of isolines per surface on solid objects (0-2047) | Integer | No | SET | Present since 2000 | |
| L | ||||||
| LASTANGLE | Stores the end angle of the last arc entered | Real | Yes | READ | Present since 2000 | Read-only. |
| LASTPOINT | Stores the last point entered (can be referenced as @ in commands) | Point | No | SET | Present since 2000 | |
| LASTPROMPT | Stores the last string echoed to the command line | String | Yes | READ | Present since 2000 | Read-only. |
| LATITUDE | Specifies the geographic latitude of the drawing in decimal degrees | Real | No | SET | Added 2007 | Used for solar studies and geographic location features. |
| LENSLENGTH | Stores the lens length in millimeters for perspective viewing in the current viewport | Real | Yes | READ | Present since 2000 | Read-only. |
| LIMCHECK | Controls whether objects can be created outside drawing limits: 0=allow 1=reject | Integer (0-1) | No | SET | Present since 2000 | |
| LIMMAX | Stores the upper-right drawing limits for the current space | Point | No | SET | Present since 2000 | |
| LIMMIN | Stores the lower-left drawing limits for the current space | Point | No | SET | Present since 2000 | |
| LINEFADING | Controls fading display of lines at their ends: 0=off 1=on | Integer (0-1) | No | SET | Added 2015 | |
| LISPINIT | Specifies whether AutoLISP functions and variables are preserved between drawings: 0=preserve 1=reinitialize | Integer (0-1) | No | SET | Present since 2000 | |
| LOCALE | Displays the ISO language code of the current AutoCAD version | String | Yes | READ | Present since 2000 | Read-only. |
| LOGFILEMODE | Specifies whether text window contents are written to a log file: 0=no 1=yes | Integer (0-1) | No | SET | Present since 2000 | |
| LOGFILEPATH | Specifies the path for log files for all drawings in a session | String | No | SET | Present since 2000 | |
| LOGINNAME | Displays the user's login name as configured when AutoCAD was loaded | String | Yes | READ | Present since 2000 | Use (getvar "LOGINNAME") to identify the current user for audit logging in LISP routines. Read-only. |
| LONGITUDE | Specifies the geographic longitude of the drawing in decimal degrees | Real | No | SET | Added 2007 | Used for solar studies and geographic location features. |
| LTSCALE | Sets the global linetype scale factor for the drawing | Real | No | KEY | Present since 2000 | One of the most commonly set variables in batch scripts. Controls linetype appearance globally across all objects. |
| LUNITS | Sets linear units: 1=scientific 2=decimal 3=engineering 4=architectural 5=fractional | Integer (1-5) | No | SET | Present since 2000 | |
| LUPREC | Sets the number of decimal places for linear units display (0-8) | Integer | No | SET | Present since 2000 | |
| LWDEFAULT | Sets the default lineweight value | Integer | No | SET | Present since 2000 | |
| LWDISPLAY | Controls whether lineweight is displayed: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| LWUNITS | Controls lineweight unit display: 0=inches 1=millimeters | Integer (0-1) | No | SET | Present since 2000 | |
| M | ||||||
| MAXACTVP | Sets the maximum number of simultaneously active viewports (2-64) | Integer | No | SET | Present since 2000 | |
| MAXSORT | Maximum number of symbol names sorted by listing commands | Integer | No | SET | Present since 2000 | |
| MBUTTONPAN | Controls third button or wheel behavior: 0=defined by menu 1=pan | Integer (0-1) | No | SET | Present since 2000 | |
| MEASUREINIT | Sets the initial drawing units for new drawings: 0=English (imperial) 1=metric | Integer (0-1) | No | SET | Present since 2000 | |
| MEASUREMENT | Sets drawing units for the current drawing: 0=English 1=metric | Integer (0-1) | No | SET | Present since 2000 | |
| MENUBAR | Controls whether the classic menu bar is displayed: 0=hidden 1=shown | Integer (0-1) | No | SET | Added 2006 | Added when the Ribbon replaced the menu bar. Set to 1 to restore the traditional menu bar. |
| MIRRTEXT | Controls how MIRROR reflects text: 0=mirror text characters 1=keep text readable | Integer (0-1) | No | SET | Present since 2000 | Set to 1 to keep text reading left-to-right after a MIRROR operation. Set to 0 for a true mirror. |
| MODEMACRO | Displays a custom text string on the status line | String | No | SET | Present since 2000 | |
| MSLTSCALE | Controls whether model space linetypes scale by the annotation scale: 0=no 1=yes | Integer (0-1) | No | SET | Added 2008 | |
| MSOLESCALE | Controls how OLE objects are scaled when inserted into model space | Real | No | SET | Added 2004 | |
| N | ||||||
| NOMUTT | Suppresses message display during operations: 0=show messages 1=suppress | Integer (0-1) | No | KEY | Present since 2000 | CRITICAL: Set to 1 to suppress repetitive warnings and status messages during large scripted batch runs. |
| O | ||||||
| OBJECTISOLATIONMODE | Controls whether object isolation persists after saving and reopening: 0=no 1=yes | Integer (0-1) | No | SET | Added 2016 | |
| OFFSETDIST | Sets the default offset distance (negative value = Through mode) | Real | No | SET | Present since 2000 | |
| OFFSETGAPTYPE | Controls polyline gap handling during OFFSET: 0=extend segments 1=fillet 2=chamfer | Integer (0-2) | No | SET | Present since 2000 | |
| ORTHOMODE | Turns Ortho mode on (1) or off (0) | Integer (0-1) | No | SET | Present since 2000 | Occasionally set in scripts to constrain movement to horizontal or vertical. |
| OSMODE | Sets running object snap modes using a bit-code sum | Integer | No | SET | Present since 2000 | Key bits: 1=ENDpoint 2=MIDpoint 4=CENter 8=NODe 32=INTersection 512=NEArest. Set to 0 in scripts requiring exact coordinate input with no snap interference. |
| OSNAPCOORD | Controls whether command-line coordinates override running object snaps (0-2) | Integer (0-2) | No | SET | Present since 2000 | 0=snaps override 1=script input overrides 2=keyboard always overrides. |
| P | ||||||
| PDMODE | Controls how point objects are displayed (0-99 bit-code) | Integer | No | SET | Present since 2000 | |
| PDSIZE | Sets the display size for point objects | Real | No | SET | Present since 2000 | |
| PDFSHX | Controls whether SHX text in PDF underlays is searchable and selectable: 0=off 1=on | Integer (0-1) | No | SET | Added 2016 | |
| PERIMETER | Stores the last perimeter value computed by AREA, LIST, or DBLIST | Real | Yes | READ | Present since 2000 | Read-only. |
| PICKADD | Controls whether subsequent selections add to or replace the selection set (0-2) | Integer (0-2) | No | SET | Present since 2000 / Changed 2012 | Value 2 (add with Shift=remove) added in AutoCAD 2012. |
| PICKAUTO | Controls automatic windowing at Select Objects prompt: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| PICKBOX | Sets the object selection target height in pixels | Integer | No | SET | Present since 2000 | |
| PICKDRAG | Controls selection window method: 0=click two corners 1=click and drag | Integer (0-1) | No | SET | Present since 2000 | |
| PICKFIRST | Controls selection sequence: 0=verb-noun 1=noun-verb (select then issue command) | Integer (0-1) | No | SET | Present since 2000 | |
| PICKSTYLE | Controls group and associative hatch selection: 0=none 1=group 2=assoc hatch 3=both | Integer (0-3) | No | SET | Present since 2000 | |
| PLATFORM | Indicates which platform of AutoCAD is in use (e.g. Windows) | String | Yes | READ | Present since 2000 | Use (getvar "PLATFORM") to detect the runtime platform. Read-only. |
| PLINEGEN | Sets how linetype patterns generate around polyline vertices: 0=from each vertex 1=across full length | Integer (0-1) | No | SET | Present since 2000 | Set to 1 for continuous linetype patterns on polylines: recommended for most drawings. |
| PLINETYPE | Controls whether AutoCAD uses optimized 2D polylines: 0=old format 2=always optimized | Integer (0-2) | No | SET | Present since 2000 | |
| PLINEWID | Stores the default polyline width | Real | No | SET | Present since 2000 | |
| PLOTROTMODE | Controls the orientation of plots (0-2) | Integer (0-2) | No | SET | Present since 2000 | |
| PLQUIET | Controls optional dialogs for batch plotting/scripts: 0=show dialogs 1=suppress and log errors | Integer (0-1) | No | KEY | Present since 2000 | CRITICAL: Set to 1 during unattended batch plotting. Suppresses non-fatal error dialogs that would otherwise pause an overnight run indefinitely. |
| POLARDIST | Sets the snap increment when SNAPSTYL is set to 1 (polar snap) | Real | No | SET | Present since 2000 | |
| POLARMODE | Controls settings for polar and object snap tracking (bit-code) | Integer | No | SET | Present since 2000 | |
| POLYSIDES | Sets the default number of sides for POLYGON (3-1024) | Integer | No | SET | Present since 2000 | |
| PRODUCT | Returns the product name (e.g. AutoCAD, AutoCAD LT, AutoCAD Architecture) | String | Yes | READ | Present since 2000 | Use (getvar "PRODUCT") in LISP to detect whether running in full AutoCAD vs LT vs a vertical. Read-only. |
| PROGRAM | Returns the program executable name | String | Yes | READ | Present since 2000 | Read-only. |
| PROJECTNAME | Assigns a project name to the current drawing for xref path searching | String | No | SET | Present since 2000 | |
| PROJMODE | Sets the Projection mode for TRIM/EXTEND: 0=true 3D 1=current UCS plane 2=view plane | Integer (0-2) | No | SET | Present since 2000 | |
| PROXYGRAPHICS | Controls whether proxy object images are saved in the drawing: 0=no 1=yes | Integer (0-1) | No | SET | Present since 2000 | |
| PROXYSHOW | Controls display of proxy objects: 0=do not show 1=show all 2=bounding box only | Integer (0-2) | No | SET | Present since 2000 | |
| PSLTSCALE | Controls paper space linetype scaling: 0=no special scaling 1=viewport scale applied | Integer (0-1) | No | SET | Present since 2000 | Set to 1 so linetypes appear correctly scaled when viewed through a viewport in paper space. |
| PSTYLEMODE | Indicates the plot style mode of the current drawing: 0=named plot styles (STB) 1=color-dependent plot styles (CTB) | Integer (0-1) | Yes | READ | Present since 2000 | Read-only. Use CONVERTPSTYLES to switch a drawing between modes. Check with (getvar "PSTYLEMODE") before a batch plot that assumes CTB files. |
| PSVPSCALE | Sets the view scale factor for all newly created floating viewports | Real | No | SET | Present since 2000 | |
| Q | ||||||
| QTEXTMODE | Controls quick text mode: 0=normal display 1=bounding boxes only (faster regen) | Integer (0-1) | No | SET | Present since 2000 | |
| R | ||||||
| REFEDITNAME | Stores the reference file name during in-place reference editing | String | Yes | READ | Present since 2000 | Empty when not editing a reference. Read-only. |
| REGENMODE | Controls automatic drawing regeneration: 0=manual (REGEN required) 1=automatic | Integer (0-1) | No | SET | Present since 2000 | |
| REINIT | Reinitializes digitizer port and/or acad.pgp file (bit-code) | Integer | No | SET | Present since 2000 | Set to 4 to reload acad.pgp during a session without restarting AutoCAD. |
| RIBBONSTATE | Reports whether the ribbon is open (1) or closed (0) | Integer | Yes | READ | Added 2009 | Read-only. Use (getvar "RIBBONSTATE") in LISP to detect ribbon state. |
| RTDISPLAY | Controls display of raster images during real-time ZOOM/PAN: 0=bounding box only 1=full raster | Integer (0-1) | No | SET | Present since 2000 | |
| S | ||||||
| SAVEFILE | Stores the current auto-save file name | String | Yes | READ | Present since 2000 | Read-only. |
| SAVEFILEPATH | Specifies the path to the directory for all automatic save files | String | No | SET | Present since 2000 | |
| SAVENAME | Stores the file name and path of the current drawing after the last save | String | Yes | READ | Present since 2000 | Read-only. |
| SAVETIME | Sets the automatic save interval in minutes (0=disable auto-save) | Integer | No | SET | Present since 2000 | |
| SCREENSIZE | Stores the current viewport size in pixels as X,Y | Point | Yes | READ | Present since 2000 | Read-only. |
| SDI | Controls single/multiple document interface: 0=multiple (MDI) 1=single | Integer (0-1) | No | SET | Present since 2000 | |
| SELECTIONCYCLING | Controls selection cycling when objects overlap: 0=off 1=cycle 2=cycle with dialog | Integer (0-2) | No | SET | Added 2011 | Set to 0 in scripts requiring predictable first-pick selection behavior. |
| SELECTIONPREVIEW | Controls selection preview highlighting effect: 0=off 1=at command preview 2=hover 3=both | Integer (0-3) | No | SET | Added 2004 | |
| SHADEDGE | Controls edge shading in rendering: 0=faces shaded no edges 1=faces filled no edges 2=faces+edges 3=outlined | Integer (0-3) | No | SET | Present since 2000 | |
| SHADEDIF | Sets ratio of diffuse to ambient light in rendering (0-100) | Integer | No | SET | Present since 2000 | |
| SHORTCUTMENU | Controls whether context menus are available in the drawing area (bit-code) | Integer | No | SET | Present since 2000 | |
| SKETCHINC | Sets the record increment for SKETCH | Real | No | SET | Present since 2000 | |
| SKPOLY | Controls whether SKETCH generates lines (0) or polylines (1) | Integer (0-1) | No | SET | Present since 2000 | |
| SNAPANG | Sets snap and grid rotation angle for the current viewport | Real | No | SET | Present since 2000 | |
| SNAPBASE | Sets the snap and grid origin point relative to current UCS | Point | No | SET | Present since 2000 | |
| SNAPISOPAIR | Controls the current isometric plane: 0=left 1=top 2=right | Integer (0-2) | No | SET | Present since 2000 | |
| SNAPMODE | Turns Snap mode on (1) or off (0) | Integer (0-1) | No | SET | Present since 2000 | |
| SNAPSTYL | Sets snap style for the current viewport: 0=standard 1=isometric | Integer (0-1) | No | SET | Present since 2000 | |
| SNAPTYPE | Sets the snap type for the current viewport: 0=standard 1=polar | Integer (0-1) | No | SET | Present since 2000 | |
| SNAPUNIT | Sets the snap spacing (X and Y) for the current viewport | Point | No | SET | Present since 2000 | |
| SOLIDCHECK | Turns solid validation on (1) or off (0) | Integer (0-1) | No | SET | Present since 2000 | |
| SOLIDHIST | Controls whether new composite solids keep a history of their original parts: 0=no history 1=keep history | Integer (0-1) | No | SET | Added 2007 | Set to 0 in batch scripts that create solids to keep drawing size down. |
| SORTENTS | Controls object sort order operations (bit-code) | Integer | No | SET | Present since 2000 | |
| SPLINESEGS | Sets number of line segments generated per spline-fit polyline | Integer | No | SET | Present since 2000 | |
| SPLINETYPE | Sets curve type for PEDIT Spline: 5=quadratic B-spline 6=cubic B-spline | Integer (5-6) | No | SET | Present since 2000 | |
| SURFTAB1 | Sets number of tabulations for RULESURF and TABSURF | Integer | No | SET | Present since 2000 | |
| SURFTAB2 | Sets mesh density in the N direction for REVSURF and EDGESURF | Integer | No | SET | Present since 2000 | |
| SURFU | Sets surface density for PEDIT Smooth in the M direction | Integer | No | SET | Present since 2000 | |
| SURFV | Sets surface density for PEDIT Smooth in the N direction | Integer | No | SET | Present since 2000 | |
| SYSCODEPAGE | Indicates the system code page specified in acad.xmf | String | Yes | READ | Present since 2000 | Read-only. |
| T | ||||||
| TARGET | Stores the location of the target point for the current viewport | Point | Yes | READ | Present since 2000 | Read-only. |
| TDCREATE | Stores the local date and time the drawing was created (Julian real number) | Real | Yes | READ | Present since 2000 | Read-only. |
| TDINDWG | Stores the total editing time accumulated in the drawing (Julian real number) | Real | Yes | READ | Present since 2000 | Read-only. |
| TDUPDATE | Stores the local date and time of the last update or save (Julian real number) | Real | Yes | READ | Present since 2000 | Read-only. |
| TDUSRTIMER | Stores the user-elapsed timer (can be reset by setting to 0) | Real | No | SET | Present since 2000 | |
| TEMPPREFIX | Contains the directory name for temporary files | String | Yes | READ | Present since 2000 | Read-only; set by ACAD environment variable or Options. |
| TEXTEVAL | Controls evaluation of text strings in AutoLISP (command) function: 0=literal 1=evaluate | Integer (0-1) | No | SET | Present since 2000 | |
| TEXTFILL | Controls filling of TrueType fonts while plotting: 0=outline only 1=filled | Integer (0-1) | No | SET | Present since 2000 | |
| TEXTQLTY | Sets TrueType font resolution tessellation fineness (0-100) | Integer | No | SET | Present since 2000 | |
| TEXTSIZE | Sets the default height for new single-line text objects | Real | No | SET | Present since 2000 | Useful in scripts that create standard text annotations. |
| TEXTSTYLE | Sets the name of the current text style | String | No | SET | Present since 2000 | Can be set via SETVAR to switch the active text style during a batch run. |
| THICKNESS | Sets the current 3D thickness for new objects | Real | No | SET | Present since 2000 | |
| TILEMODE | Controls Model/Layout tab: 0=paper space layout active 1=model space active | Integer (0-1) | No | SET | Present since 2000 | Set to 1 to ensure scripts run in model space. Set to 0 to switch to paper space for plotting. |
| TOOLTIPS | Controls display of tooltips: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| TRACEWID | Sets the default trace width | Real | No | SET | Present since 2000 | |
| TREEDEPTH | Specifies the maximum depth of the spatial index tree | Integer | No | SET | Present since 2000 | |
| TRIMMODE | Controls whether CHAMFER/FILLET trims edges: 0=no trim 1=trim selected edges | Integer (0-1) | No | SET | Present since 2000 | |
| TSPACEFAC | Controls multiline text line spacing as a factor of text height | Real | No | SET | Present since 2000 | |
| TSPACETYPE | Controls type of line spacing in multiline text: 1=at-least 2=exactly | Integer (1-2) | No | SET | Present since 2000 | |
| TSTACKALIGN | Controls vertical alignment of stacked text (0-2) | Integer (0-2) | No | SET | Present since 2000 | |
| TSTACKSIZE | Controls stacked text height as a percentage of current text height | Integer | No | SET | Present since 2000 | |
| U | ||||||
| UCSAXISANG | Stores the default rotation angle when rotating UCS around an axis | Real | No | SET | Present since 2000 | |
| UCSBASE | Stores the UCS name defining the origin and orientation of orthographic UCS settings | String | No | SET | Present since 2000 | |
| UCSFOLLOW | Generates a plan view when switching UCS: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| UCSICON | Controls UCS icon display: 0=off 1=on 2=display at origin when possible | Integer | No | SET | Present since 2000 | |
| UCSNAME | Stores the name of the current coordinate system for the current viewport | String | Yes | READ | Present since 2000 | Read-only. |
| UCSORG | Stores the origin point of the current UCS for the current viewport | Point | Yes | READ | Present since 2000 | Read-only. |
| UCSORTHO | Determines whether the related orthographic UCS restores automatically: 0=off 1=on | Integer (0-1) | No | SET | Present since 2000 | |
| UCSVIEW | Determines whether the current UCS is saved with a named view: 0=no 1=yes | Integer (0-1) | No | SET | Present since 2000 | |
| UCSVP | Determines whether the UCS in viewports remains fixed: 0=changes with active VP 1=fixed | Integer (0-1) | No | SET | Present since 2000 | |
| UCSXDIR | Stores the X direction of the current UCS for the current viewport | Point | Yes | READ | Present since 2000 | Read-only. |
| UCSYDIR | Stores the Y direction of the current UCS for the current viewport | Point | Yes | READ | Present since 2000 | Read-only. |
| UNDOCTL | Stores bit-code indicating the state of the UNDO Auto and Control options | Integer | Yes | READ | Present since 2000 | Read-only. |
| UNITMODE | Controls display format for fractional and surveyor units | Integer (0-1) | No | SET | Present since 2000 | |
| USERI1 | Integer storage variable #1 for user or AutoLISP use (persists within the drawing session) | Integer | No | SET | Present since 2000 | Five variables USERI1-5 available. Use as temporary global storage in LISP batch routines. |
| USERI2 | Integer storage variable #2 for user or AutoLISP use | Integer | No | SET | Present since 2000 | |
| USERI3 | Integer storage variable #3 for user or AutoLISP use | Integer | No | SET | Present since 2000 | |
| USERI4 | Integer storage variable #4 for user or AutoLISP use | Integer | No | SET | Present since 2000 | |
| USERI5 | Integer storage variable #5 for user or AutoLISP use | Integer | No | SET | Present since 2000 | |
| USERR1 | Real number storage variable #1 for user or AutoLISP use | Real | No | SET | Present since 2000 | Five variables USERR1-5 available. |
| USERR2 | Real number storage variable #2 for user or AutoLISP use | Real | No | SET | Present since 2000 | |
| USERR3 | Real number storage variable #3 for user or AutoLISP use | Real | No | SET | Present since 2000 | |
| USERR4 | Real number storage variable #4 for user or AutoLISP use | Real | No | SET | Present since 2000 | |
| USERR5 | Real number storage variable #5 for user or AutoLISP use | Real | No | SET | Present since 2000 | |
| USERS1 | String storage variable #1 for user or AutoLISP use | String | No | SET | Present since 2000 | Five variables USERS1-5 available. |
| USERS2 | String storage variable #2 for user or AutoLISP use | String | No | SET | Present since 2000 | |
| USERS3 | String storage variable #3 for user or AutoLISP use | String | No | SET | Present since 2000 | |
| USERS4 | String storage variable #4 for user or AutoLISP use | String | No | SET | Present since 2000 | |
| USERS5 | String storage variable #5 for user or AutoLISP use | String | No | SET | Present since 2000 | |
| V | ||||||
| VIEWCTR | Stores the center of view in the current viewport | Point | Yes | READ | Present since 2000 | Read-only. |
| VIEWDIR | Stores the viewing direction in the current viewport | Point | Yes | READ | Present since 2000 | Read-only. |
| VIEWSIZE | Stores the height of the view in the current viewport | Real | Yes | READ | Present since 2000 | Read-only. |
| VIEWTWIST | Stores the view twist angle for the current viewport | Real | Yes | READ | Present since 2000 | Read-only. |
| VISRETAIN | Controls xref-dependent layer property overrides: 0=discarded on reload 1=saved | Integer (0-1) | No | SET | Present since 2000 | Set to 1 to preserve xref layer color, linetype, and visibility overrides between sessions. |
| VSMAX | Stores the upper-right corner of the current viewport's virtual screen | Point | Yes | READ | Present since 2000 | Read-only. |
| VSMIN | Stores the lower-left corner of the current viewport's virtual screen | Point | Yes | READ | Present since 2000 | Read-only. |
| W | ||||||
| WMFBKGND | Controls Windows Metafile output background: 0=transparent 1=opaque white | Integer (0-1) | No | SET | Present since 2000 | |
| WORLDUCS | Indicates whether the current UCS is the same as WCS: 0=no 1=yes | Integer | Yes | READ | Present since 2000 | Read-only. |
| WORLDVIEW | Determines whether 3DORBIT/VPOINT input is relative to WCS (1) or current UCS (0) | Integer (0-1) | No | SET | Present since 2000 | |
| WRITESTAT | Indicates whether the drawing file can be written: 0=read-only 1=writable | Integer | Yes | READ | Present since 2000 | Use (getvar "WRITESTAT") in LISP to check if the file can be saved before attempting QSAVE. Read-only. |
| X | ||||||
| XCLIPFRAME | Controls visibility of xref clipping boundaries: 0=hidden 1=visible not plotted 2=visible and plotted | Integer (0-2) | No | SET | Present since 2000 / Changed 2012 | Value 2 (visible and plotted) added in AutoCAD 2012. |
| XEDIT | Controls whether the current drawing can be edited in-place when referenced: 0=no 1=yes | Integer (0-1) | No | SET | Present since 2000 | |
| XFADECTL | Controls fading intensity percentage for references being edited in-place (0-90) | Integer | No | SET | Present since 2000 | |
| XLOADCTL | Turns xref demand loading on and off: 0=disabled 1=opens xref directly 2=opens copy | Integer (0-2) | No | SET | Present since 2000 | |
| XLOADPATH | Specifies the path for temporary copies of demand-loaded xref files | String | No | SET | Present since 2000 | |
| XREFCTL | Controls whether external reference log (.XLG) files are written: 0=no 1=yes | Integer (0-1) | No | SET | Present since 2000 | |
| XREFNOTIFY | Controls notification for updated or missing xrefs: 0=none 1=tray icon 2=tray icon + alert dialog | Integer (0-2) | No | SET | Added 2004 | |
| XREFTYPE | Controls default reference type when attaching xrefs: 0=attach 1=overlay | Integer (0-1) | No | SET | Added 2015 | |
| Z | ||||||
| ZOOMFACTOR | Controls the incremental change in zoom per IntelliMouse wheel action (3-100) | Integer | No | SET | Present since 2000 | |
Add these SETVAR calls at the start of any Hurricane script that runs unattended. Without them, dialogs and prompts will pause the run:
SETVAR FILEDIA 0: Suppresses file open/save dialogs for SAVEAS, EXPORT, IMPORT, ACISIN, ACISOUT, BMPOUT, WMFIN, WMFOUT, STLOUT, PSIN, PSOUT, MSLIDE, VSLIDE, and SCRIPT. Reset to 1 at the end of your script.SETVAR ATTDIA 0: Prevents INSERT from opening the Attribute Entry dialog when inserting attributed blocks. Without this, every attributed block insertion pauses for user input.SETVAR CMDECHO 0: Suppresses AutoCAD echoing of prompts and input during AutoLISP (command ...) calls. Makes LISP routines silent and noticeably faster.SETVAR EXPERT 2: Suppresses confirmation and warning prompts. Level 1 suppresses “About to regen?” and layer-off warnings. Level 2 also suppresses PURGE confirm. Level 3+ suppresses additional style/UCS warnings.SETVAR NOMUTT 1: Suppresses repetitive status messages and warnings during large batch runs.SETVAR PLQUIET 1: Suppresses non-fatal error dialogs during batch plotting. Without this, a single plot error dialog will pause an overnight run indefinitely.Need these set in hundreds of drawings? Hurricane runs your script on every DWG in a folder, unattended. Download the free trial.
SETVAR CLAYER layername: Sets the current layer. Equivalent to -LAYER S layername.SETVAR LTSCALE 1: Sets the global linetype scale. Match this to the drawing scale.SETVAR OSMODE 0: Turns off all running object snaps before commands that require exact coordinate input.SETVAR TILEMODE 1: Switches to model space. Set to 0 for paper space.SETVAR PSLTSCALE 1: Makes linetypes appear correctly scaled in paper space viewports.SETVAR MIRRTEXT 0: Keeps text readable after MIRROR (does not mirror text characters).SETVAR ATTREQ 0: Uses default attribute values without prompting during INSERT.SETVAR DYNMODE 0: Turns off Dynamic Input (added 2006). Speeds up scripted operations.(getvar "DWGNAME"): Current drawing file name without the path.(getvar "DWGPREFIX"): Drive and directory path of the current drawing; use to build full file paths.(getvar "ACADVER"): AutoCAD version string; use to branch code for different versions.(getvar "CDATE"): Current date/time as a real (YYYYMMDD.HHMMSSnn); use for date-stamping attributes.(getvar "CTAB"): Name of the current Model or Layout tab.(getvar "LOGINNAME"): Current user’s login name; useful for audit logging in LISP routines.(getvar "ERRNO"): Error code from the last AutoLISP call; use for error detection and branching.(getvar "WRITESTAT"): 1 if the drawing can be saved, 0 if read-only; check before attempting QSAVE.