• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Electrical

    Reply
    Valued Contributor
    Posts: 56
    Registered: ‎12-04-2003

    Add layers to all drawing in project

    67 Views, 5 Replies
    04-09-2004 07:48 AM
    Hi,
    Is there a way to add/edit layers to all drawings in a project at once?
    I am at the end of a project, and am assigning wire gauge/color. Since I don't have a list of gauges being used,
    I am adding them as I go page by page. For this reason, it is impractical/impossible for me to include all the wire layers in my format.
    It seems that I must add each new wire layer to each drawing
    in the set individually. And (??? not sure) Design Center doesn't work in SDI. The end result is that it seems that I must add about 20 new layers to about fifteen drawings, one by one - or put about 100 mostly unnecessary layers into my standard layer set on my format.
    Am I missing something?
    Lynne
    Please use plain text.
    *Expert Elite*
    Posts: 975
    Registered: ‎03-09-2004

    Re: Add layers to all drawing in project

    04-09-2004 08:21 AM in reply to: Lint
    To simplify the process, I would create a script file that added all the layers you want to add to each file. Then all you haveto do its, open each file and run the script.

    To help automate this I use a third party utility called Hurricane forAutoCAD which handles creating batch style scripts for all kinds of things AutoCAD related. With it, you tell it what drawings to run the script on and then just sit back and let it do its thing.

    http://www.74mph.com

    I hope this helps,

    Robert Hanrahan
    AE user since 97
    Bob Hanrahan
    Ace User since 1998
    Please use plain text.
    Distinguished Contributor
    Posts: 435
    Registered: ‎01-14-2004

    Re: Add layers to all drawing in project

    04-11-2004 06:15 AM in reply to: Lint
    The script file can be run project-wide or by selecting drawings within the project. Click Proj>Util, then on the right center of the dialog box check "Run comand script file", enter the script file name in the box and click OK. In the next dialog box select "Project" then click OK. The brings up the project drawing list where you can select the drawings or "Do All".
    Please use plain text.
    *Expert Elite*
    Posts: 975
    Registered: ‎03-09-2004

    Re: Add layers to all drawing in project

    04-13-2004 07:47 PM in reply to: Lint
    Thanks for the info Mike. I have been using Hurricane for a very long time and wasn't aware of the script running utility in AE. I have been using this software for 7 years and still find new things about it.
    Bob Hanrahan
    Ace User since 1998
    Please use plain text.
    Distinguished Contributor
    Posts: 136
    Registered: ‎03-31-2005

    Re: Add layers to all drawing in project

    03-31-2005 07:47 PM in reply to: Lint
    Does any one have the script file to do this?
    Please use plain text.
    *Nate Holt \(Autodesk\)

    Re: Add layers to all drawing in project

    04-01-2005 05:01 AM in reply to: Lint
    Here is one simple, brute-force way to do it. The idea is to define all your layers on a blank drawing and then insert this as an exploded block into each of your AcadE project drawings: 1. Create a new, blank drawing. Call it something like "standard_acade_layers.dwg". 2. On this drawing define all of your layers with desired colors, line fonts, plotting paramaters, etc. Don't put anything else on this drawing, leave it blank. Save it. 3. Create a small script file called "standard_acade_layers.scr" with these five lines: insert "*c://standard_acade_layers" 0,0 1.0 0 4. Run AcadE's "Project-wide" utilities. Select the "Run Script Command" toggle and browse to your script file in #3 above. Select all dwgs in your project and hit OK. Let it run. "HMS Controls" wrote in message news:15303643.1112327275381.JavaMail.jive@jiveforum2.autodesk.com... > Does any one have the script file to do this?
    Please use plain text.