AutoCAD Electrical toolset uses a text file, WD.ENV to define various environment settings within the program.
The format for each line in the file is: environment code,setting,description (separated by commas).
Note: If the first character in the line is an asterisk, "*", the program ignores that line.
The following environment codes are supported:
| Environment Code | Purpose |
|---|---|
| WD | Folder for support files such as dialog files and xls templates |
| WD_USER | Folder for user temporary files |
| WD_LIB | Base folder library symbols |
| WD_USERCKTDIR | Folder for saved circuits |
| WD_PNL | Base folder for panel layout library symbols |
| WD_CIRCBUILDER_FNAM | Circuit Builder spreadsheet file name |
| WD_INSCOMPDLG | Starting folder for the browse button on the schematic icon menu |
| WD_INSFPDLG | Starting folder for the browse button on the panel icon menu |
| WD_INSCKTDLG | Starting folder for the Insert Circuit file selection dialog |
| WD_WBLOCKDLG | Starting folder for Symbol Builder save |
| WD_PICKLIST | File name and location for the Insert Component from a User File option |
| PLC_ADDRESS_FORMAT | Default PLC address formats for the drop-down list |
| WD_CAT | Catalog database folder |
| WD_XCAT | Override catalog look-up and call custom catalog program |
| WD_PROJ | Default project folder |
| WD_PICKPRJDLG | Starting folder for the Open Project button |
| WD_OPEN_DWG | AutoLISP program or expression to execute when a drawing is opened from Project Manager |
| WD_ZIP | Zipping utility used by the Zip Project command |
| WD_PROMPT_SAVE | Trigger "Save changes" prompt when using the Next Project Drawing or Previous Project Drawing buttons |
| WD_DWF_PC3 | Alternate DWF plotter configuration pc3 file reference |
| WD_JPG_PC3 | Alternate JPG plotter configuration pc3 file reference |
| WD_PNG_PC3 | Alternate PNG plotter configuration pc3 file reference |
| WD_PLOT2FILEDIR | Folder for Batch Plot to File |
| WD_SAVE2FILEDLG | Default save folder for reports |
| WD_SET_FILES | Default folder for report SET files |
| WD_MENU | Default schematic icon menu used by the Default button on the Project Properties: Project Settings tab |
| WD_PMENU | Default panel icon menu used by the Default button on the Project Properties: Project Settings tab |
| WD_SLB | Folder for the slide support files for icon menus |
| WD_SUP_ALT | Search an alternate support path before default AutoCAD Electrical toolset support paths |
| WD_ACADPATHFIRST | Search AutoCAD support file search paths first before AutoCAD Electrical toolset paths |
| WD_SCR_DLG | Override starting path for SCRIPT file selection dialog |
| WD_MSG | Map internal prompts and messages to specific language |
| WD_LASTSURF | External text file listing last surfed item |
| WD_PRINT_FONT | Print report font name and optional point size |
| SETQ | Set a global variable at startup |
You can define a path setting using any of the following aliases:
| Alias | Purpose |
|---|---|
| %PF_DIR% | Base executable install folder |
| %DS_DIR% | Base "Documents and Settings" folder |
| %WD_DIR% | Base folder where "wd.env" is located |
| %SL_DIR% | Base folder for symbol library "Libs" folder |
| %ACAD_SUP_FIRST% | First path listed under AutoCAD support file path list |
| %ACAD_SUP_LAST% | Last path listed under AutoCAD support file path list |
Note: View the wd.env file for examples.