The Project-Wide Utilities feature in AutoCAD Electrical is kind of a catch-all for changes you might want to make project-wide such as setting all wire numbers as fixed, changing attribute sizes, and importing wire types.
Project-Wide Utilities also has an option to run a script. The script can contain standard AutoCAD commands, API calls, calls to custom programs, and lisp functions. Pretty much anything you can type on the AutoCAD Electrical command line can be put in a script. And to make this even more useful the drawings don't have to be AutoCAD Electrical drawings (unless you are using AutoCAD Electrical commands in the script).
Follow these steps:
- Create the script containing the commands or API calls just as you would enter them on the command line.
Note: Make sure to use .scr extension when you save the script file. - Test the script on one drawing to make sure it works using the AutoCAD SCRIPT command.
- Create a project containing all the drawings you want to run this on.
- Run the Project-Wide Utilities; Project tab > Project Tools panel > Utilities
.
- Select "Run command script file".
- Browse to the script file.
- OK and select the drawings to process.
Example script:
----------------------------------------------------------------------------------------------------
Layer OFF RED_18AWG
(c:ace_new_wiretype "DC-WIRE" (list "WIRE COLOR" "BL" "SIZE" "16AWG" "_COLOR" "BLUE" "_LTYPE" "DASHED" "_LWEIGHT" "2.5") nil)
----------------------------------------------------------------------------------------------------
Notice the blank line after the layer command. This blank line is like pressing Enter to terminate the command. The script file should also end with a blank line. However, make sure there is only one blank line at the end. Extra blank lines will repeat the last command.
-Pat Murnen


Subscribe
Hi,
How we can change the components family code as per our requirement?
When adding a new components to catalog list, we can add pin list values to that components. After that again the catalog items selected the pin list values are nil. How we can save the pin list values permanently to that component?
Please help us on the above two problems.
Regards,
Rajesh
Posted by: Rajesh.P.S. | 09/13/2012 at 02:04 AM
Rajesh, I posted an answer regarding the family names in the discussion group where you originally asked the question - http://forums.autodesk.com/t5/AutoCAD-Electrical/Customized-component-family-names/m-p/3619302#M28231
It looks like your other post regarding pin list was answered at - http://forums.autodesk.com/t5/AutoCAD-Electrical/Pin-list-for-a-new-control-relay/td-p/3618332
Regards,
Pat Murnen
Autodesk
Posted by: Pat Murnen | 09/13/2012 at 11:47 AM
Hi! Is there a good listing somewhere of all of the autocad electrical commands and their input parameters?
Posted by: Joseph Hoffman | 01/02/2013 at 11:44 AM
I guess you mean the API commands? You can find the API Help on the Help drop-down menu under Additional Resources. The Help shows all the commands and any parameters.
Posted by: Pat Murnen | 01/02/2013 at 12:19 PM
Awesome post!!! I've been wondering if there was something simple like this! A standard set of drawings has the color for layer 0 as red, its driving me nuts!
Posted by: Tisha | 01/24/2013 at 01:07 PM
Tee Shirt G Star
casquette homme
nike tn requin
lunettes oakley
bonnet casquette
tee shirt humour
casquette monster
tee shirt blanc
casquette supreme
casquette los angeles
Nike Jordan Retro 3
Nike Air Max Shoes Shopping Online
Echarpe
Nike Air Max 97
Nike Air Max 90
Air Jordan 6 olympic
Kobe 7
tee shirt pas cher
casquette superman
casquette hip hop
http://www.nikemay.com
http://nikelebron33.com
http://www.niketnmode.com
http://www.promolaredoute.fr
http://www.soyoyoso.fr
http://www.k77.fr
http://www.zgg.fr
http://Niketnpascher036.fr
http://Niketnpascher026.fr
http://g44.fr
Posted by: xztqseen | 05/02/2013 at 03:28 PM