Hurricane for AutoCAD
Critical scripting variables • Read-only values • Version history • SETVAR usage in Hurricane batch scripts
SETVAR command (e.g. SETVAR FILEDIA 0) or by typing the variable name directly at the command prompt. Variables marked KEY must be set at the start of any serious batch script — skipping them causes dialogs or prompts to pause unattended runs. Variables marked SET are useful to configure in scripts. Variables marked READ are read-only and can be queried in AutoLISP with (getvar "VARNAME"). Use the filter buttons or the search box to find what you need.
📚 Companion resource: AutoCAD Command Reference: 2000 to 2026 — 250+ commands rated for batch-script compatibility, with hyphen variants and dialog warnings.
| Variable | Description | Type | Read-Only | Script Use | Version / Status | Notes & Scripting Tips |
|---|
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.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.