Professional Documents
Culture Documents
Terminal AutoCAD
Automating AutoCAD Electrical
Listed below in red is the default wd.env file. My comments will be in black under the line they are describing. Throughout this break-down I will show examples of changes,
showing both the wd.env file and the results.
First of all, every line that starts with an asterisk (*) is ignored by Electrical. These lines are for our comments and notes while working on the file. Instead of blowing away
an entire line and replacing it with my own text, I will add an asterisk to the default line and then copy and paste it below the line being modified. That way I can always
reference or return to the default if needed. And as always, make a copy of this file before you start playing with it.
Blog Archive
► 2014 (13)
▼ 2013 (36)
► December (1)
► October (3)
► September (1)
► August (6)
► July (1)
* By default, "value" is evaluated as a character string. To force it to read as an ► June (5)
* integer, real, or nil value, preceed value with ' character.
► May (4)
* ex: SETQ:GBL_wd_pi,'3.1416, evaluates as "real" number
* ex: SETQ:GBL_wd_int,'7, evaluates as "integer" number ► April (1)
* ex: SETQ:GBL_wd_xx,'nil, sets global to "nil" or null value
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 2 of 12
Follow by Email
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 3 of 12
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 4 of 12
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 5 of 12
Runs an external LISP routine to retrieve the footprint block name and catalog data. This button is only found on the Insert Footprint from Schematic List and the Insert Footprint from Equipment List dialogs.
************************************************************************************
* Project and drawing-related paths and settings
************************************************************************************
WD_PROJ,%WD_DIR%/proj/,AutoCAD Electrical default project data folder
This is the default save location for new projects. Point this to the folder on the network where all your projects are stored. That will eliminate several clicks each time a
new projects is created.
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 6 of 12
*WD_OPEN_DWG,(command "_.ZOOM" "_E"),AutoLISP prog or expression to autoexecute when dwg opened from PROJ dlg
This is a handy little utility that allows a simple command, or an entire LISP, to run at file open. The example they are showing will run a zoom extents on every drawing
right after its opened. Simply remove the asterisk and this line will run. I sure you can find several other good uses for this.
*WD_PROMPT_SAVE,1,set to 1 to trigger "Save changes" prompt when using open dwg next/prev arrows buttons
Remove the asterisk from this row and the Next/Previous buttons will prompt for a Save if there are any pending saves needed. After pressing Yes or NO the drawing will
close and move on to the Next/Previous drawing. With this row commented out (*), Electrical saves automatically if there are pending changes.
************************************************************************************
* Plotting & Reporting Path
************************************************************************************
WD_DWF_PC3,DWF6 ePlot.pc3,alternate "dwf" plotter config pc3 file reference
*WD_JPG_PC3,PublishToWeb JPG.pc3,alternate "jpg" plotter config pc3 file reference
*WD_PNG_PC3,PublishToWeb PNG.pc3,alternate "png" plotter config pc3 file reference
The three rows above allow setting default .pc3 names for printing to DWF, JPG, and PNG. Electrical will look in AutoCAD's default .pc3 folder for these files. If you plan
on using these, be sure to set everyone to a network location in AutoCAD's Options as well.
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 7 of 12
************************************************************************************
* Menu & Slide Path
************************************************************************************
*WD_MENU,%DS_DIR%/my_menu.dat,to override default schem icon menu
This row allows a custom name and path for the schematic icon menu.
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 8 of 12
Remember to press the Default button on the Project Properties row after changing this path.
*WD_SLB,x:/some path/,to override path pointing to ".slb" slide lib support files
New icon menu images will default to this location. Remember to move the original slide libraries (.slb) to this location as well.
Remember to move the original slide libraries (.slb) and their .dll's to this location as well. The
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 9 of 12
************************************************************************************
* Misc
************************************************************************************
*WD_SUP_ALT,x:/some path/,to include an alternate support path (searched before normal AutoCAD Electrical support path)
This is where I set my support path. This path is searched BEFORE the one listed at the beginning of this document. By having two support paths you can
place ONLY what has been modified on the network. The rest of the files continue to pull from the users local drive. Typical things that would go into this
directory would be: .wdl, .wdt, .loc, .inst, .wdd, ect.
*WD_ACADPATHFIRST,1,if 1 then check ACAD path first before AutoCAD Electrical paths
If your using the we.env file correctly, I have a hard time finding a reason for this line. In any case, if you need the AutoCAD support paths searched
before the Electrical paths remove the asterisk from the front of the row.
*WD_SCR_DLG,x:/some path/,to override starting path for SCRIPT file selection dialog
A number of dialogs have the option to call to an outside script. This path allows you to set a default path to those scripts. The default is the 'User' folder.
WD_MSG,ENU (English-US),map internal prompts and messages to specific language column in wd_msg.mdb file
This row sets what language should be used in prompts and messages. The wd_msg.mdb files its in the install location\support. Other choices are ESP
(Spanish), DEU (German), ITA (Italian), JPN (Japanese), CHS (Simplified Chinese), FRA (French).
This database may need custom modification. The JPN and CHS columns are completely empty in my database. Many of the rows only have English.
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 10 of 12
*WD_PRINT_FONT,"Courier New" 10, Dialog's PRINT report font name and optional point size. Put quotes around multi-word font names (ex:
WD_PRINT_FONT,"Times New Roman" 10)
This sets the font name and size when printing a report directly from the report dialogs.
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 11 of 12
*SETQ:GBL_wd_colga_leaderlay,"SYMS"
*SETQ:GBL_wd_colga_textlay,"MISC"
These two set the default layers for the leader and text used in the Wire Color/Gauge Label command.
*SETQ:GBL_wd_break_parameters,'(0.85 40.0), distance ratio/angle for PLC I/O and connector jagged break lines
This line drives the defaults for the jog in PLC breaks.
*SETQ:GBL_wd_importdbUppercase,0, if 0 then Import from Project Database unchecks Force values to upper case
As values that are wrote back into the schematic from the scratch database are automatically capitalized. The only time this would be a problem is when
making outside changes to the scratch database and then writing them back into the project. If any of those changes were lowercase they would be pushed
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014
Terminal AutoCAD: Breaking The wd.env File Down Line By Line Page 12 of 12
into the project as uppercase. Enable this line and those values would honor their original case.
Labels: Customizing
2 comments:
Hi Stan.
I really like your posts. Not many good AcadE resources left on the internet.
However.. I belive you're wrong about the WD_XCAT.
This variable makes you able to use an external LISP-program to do a catalog lookup (when pressing the lookup-button in the Edit Component/Footprint dialogs.)
THL
Reply
After digging deeper on that line I do believe your right. Once I find some time to run some tests I’ll rewrite that section and give you credit for catching my error.
Reply
Publish Preview
Share It
http://myacade.blogspot.com/2013/02/breaking-wdenv-file-down-line-by-line.html 9/8/2014