element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Autodesk EAGLE
  • Products
  • More
Autodesk EAGLE
EAGLE User Support (English) Toggling all layers associated with the Top or Bottom metal Layers
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Autodesk EAGLE to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 6 replies
  • Subscribers 187 subscribers
  • Views 653 views
  • Users 0 members are here
Related

Toggling all layers associated with the Top or Bottom metal Layers

e14 Contributor
e14 Contributor over 10 years ago

When the Layers window is opened, you have  NEW, CHANGE, DEL, ALL and NONE.

 

I recall that earlier editions would toggle all of the Top or Bottom layers associated with the metal layers when the Top or Bottom metal layers were toggled.

 

It would be nice to add 2 buttons to the "Layers Display",  such as  "All-TOP"  and  "All-BOT",  which would toggle any layer that starts with 't' or 'b'.

It is very time consuming to do this by hand when working with parts on both sides of a PCB,  sometimes hundreds of times per day.image

  • Sign in to reply
  • Cancel
  • autodeskguest
    autodeskguest over 10 years ago

    Not mentioned so far is the use of display aliases

     

    Set the layers as you want them for one view.

    Then right click on the layer icon

    Give your view an alias name

    Repeat for the other view.

     

    In use, right click and select your alias

     

    This is explained in HELP > Find: ALIAS > DISPLAY> Parameter Aliases

     

    HTH

    Warren

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 10 years ago

    Not mentioned so far is the use of display aliases

     

    Set the layers as you want them for one view.

    Then right click on the layer icon

    Give your view an alias name

    Repeat for the other view.

     

    In use, right click and select your alias

     

    This is explained in HELP > Find: ALIAS > DISPLAY> Parameter Aliases

     

    HTH

    Warren

     

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 10 years ago

    Jim Hannas wrote:

    When the Layers window is opened, you have  NEW, CHANGE, DEL, ALL and NONE.

     

    I recall that earlier editions would toggle all of the Top or Bottom layers associated with the metal layers when the Top or Bottom metal layers were toggled.

     

    It would be nice to add 2 buttons to the "Layers Display",  such as  "All-TOP"  and  "All-BOT",  which would toggle any layer that starts with 't' or 'b'.

    It is very time consuming to do this by hand when working with parts on both sides of a PCB,  sometimes hundreds of times per day.:(

     

    some years ago I wrote togLayer.ulp.

    It is meant to be assiged to a hotkey and takes three groups of layer

    numbers from the command line. For instance:

     

         run togLayer 1 21 !16 22 = 23 24

     

    will toggle layer 1 and 21 dependinf on the current visibility of

    layer 1.

    In addition layer 16 and 22 are toggled reversely.

    Layer 23 and 24 are forced to keep their current visibility.

     

    The second and thired group (and there separators ! and =) are

    optional.

     

     

    int getVis (int l)

    {

    int v = 0;

     

    project.board(B) B.layers(L)

       if (L.number == l) v = L.visible;

     

    return v;

    }

     

    string cmd;

     

    string appendLayer (int l, int v)

    {

    string s;

     

    if (v == 1)

       sprintf(s, " %d", l);

    else

       sprintf(s, " -%d", l);

     

    return s;

    }

     

    void main (void)

    {

    int wasSchematic = schematic && project.board;

     

    if (wasSchematic )

       cmd = "edit .brd;";

     

    //  if (board)

    {

       int l, v, n = 2;

       string s;

     

       // check first parameter

       if ((l = strtol(argv[1])) != 0)

       {

         // prepare cmd to invert first layer visibility

         cmd += "display";

         v = getVis(l);

         cmd += appendLayer(l, 1-v);

     

         // for the following parameters up to a ! or =

         //  append cmds to force the same visibility

         while ((n < argc) && ((l = strtol(argv[n])) != 0))

         {

           cmd += appendLayer(l, 1-v);

           n++;

         }

     

         // for the parameters following a ! up to a =

         //  append cmds to force the opposite visibility

         n++;

         while ((n < argc) && ((l = strtol(argv[n])) != 0))

         {

           cmd += appendLayer(l, v);

           n++;

         }

     

         // for the parameters following a =

         //  append cmds to force the visibility to not change

         n++;

         while ((n < argc) && ((l = strtol(argv[n])) != 0))

         {

           cmd += appendLayer(l, getVis(l));

           n++;

         }

     

         cmd += ";";

       }

    }

     

    if (wasSchematic )

       cmd += "edit .sch;";

     

    if (cmd != "")

    {

       //dlgMessageBox(cmd);

       exit (cmd);

    }

    }

    --

     

    Lorenz

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 10 years ago

    Jim Hannas wrote:

    When the Layers window is opened, you have  NEW, CHANGE, DEL, ALL and NONE.

     

    I recall that earlier editions would toggle all of the Top or Bottom layers associated with the metal layers when the Top or Bottom metal layers were toggled.

     

    It would be nice to add 2 buttons to the "Layers Display",  such as  "All-TOP"  and  "All-BOT",  which would toggle any layer that starts with 't' or 'b'.

    It is very time consuming to do this by hand when working with parts on both sides of a PCB,  sometimes hundreds of times per day.:(

     

    some years ago I wrote togLayer.ulp.

    It is meant to be assiged to a hotkey and takes three groups of layer

    numbers from the command line. For instance:

     

         run togLayer 1 21 !16 22 = 23 24

     

    will toggle layer 1 and 21 dependinf on the current visibility of

    layer 1.

    In addition layer 16 and 22 are toggled reversely.

    Layer 23 and 24 are forced to keep their current visibility.

     

    The second and thired group (and there separators ! and =) are

    optional.

     

     

    int getVis (int l)

    {

    int v = 0;

     

    project.board(B) B.layers(L)

       if (L.number == l) v = L.visible;

     

    return v;

    }

     

    string cmd;

     

    string appendLayer (int l, int v)

    {

    string s;

     

    if (v == 1)

       sprintf(s, " %d", l);

    else

       sprintf(s, " -%d", l);

     

    return s;

    }

     

    void main (void)

    {

    int wasSchematic = schematic && project.board;

     

    if (wasSchematic )

       cmd = "edit .brd;";

     

    //  if (board)

    {

       int l, v, n = 2;

       string s;

     

       // check first parameter

       if ((l = strtol(argv[1])) != 0)

       {

         // prepare cmd to invert first layer visibility

         cmd += "display";

         v = getVis(l);

         cmd += appendLayer(l, 1-v);

     

         // for the following parameters up to a ! or =

         //  append cmds to force the same visibility

         while ((n < argc) && ((l = strtol(argv[n])) != 0))

         {

           cmd += appendLayer(l, 1-v);

           n++;

         }

     

         // for the parameters following a ! up to a =

         //  append cmds to force the opposite visibility

         n++;

         while ((n < argc) && ((l = strtol(argv[n])) != 0))

         {

           cmd += appendLayer(l, v);

           n++;

         }

     

         // for the parameters following a =

         //  append cmds to force the visibility to not change

         n++;

         while ((n < argc) && ((l = strtol(argv[n])) != 0))

         {

           cmd += appendLayer(l, getVis(l));

           n++;

         }

     

         cmd += ";";

       }

    }

     

    if (wasSchematic )

       cmd += "edit .sch;";

     

    if (cmd != "")

    {

       //dlgMessageBox(cmd);

       exit (cmd);

    }

    }

    --

     

    Lorenz

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 10 years ago

    Jim Hannas wrote on Sun, 05 June 2016 11:52

    I recall that earlier editions would toggle all of the Top or Bottom

    layers associated with the metal layers when the Top or Bottom metal

    layers were toggled.

     

     

    Huh? What?

     

    Quote:

    It would be nice to add 2 buttons to the "Layers Display",  such as 

    "All-TOP"  and  "All-BOT",  which would toggle any layer that starts

    with 't' or 'b'.  It is very time consuming to do this by hand when

    working with parts on both sides of a PCB, sometimes hundreds of times

    per day.:(

     

     

    So what you're really asking for is a quick way to select a certain group

    of layers to be displayed.  That is already available, and I do it

    routinely.  Create scripts for the configurations you want.  Then you can

    run the script simply by entering "scr " commands you use often to hot keys.

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • autodeskguest
    autodeskguest over 10 years ago

    Jim Hannas wrote on Sun, 05 June 2016 11:52

    I recall that earlier editions would toggle all of the Top or Bottom

    layers associated with the metal layers when the Top or Bottom metal

    layers were toggled.

     

     

    Huh? What?

     

    Quote:

    It would be nice to add 2 buttons to the "Layers Display",  such as 

    "All-TOP"  and  "All-BOT",  which would toggle any layer that starts

    with 't' or 'b'.  It is very time consuming to do this by hand when

    working with parts on both sides of a PCB, sometimes hundreds of times

    per day.:(

     

     

    So what you're really asking for is a quick way to select a certain group

    of layers to be displayed.  That is already available, and I do it

    routinely.  Create scripts for the configurations you want.  Then you can

    run the script simply by entering "scr " commands you use often to hot keys.

    --

    Web access to CadSoft support forums at www.eaglecentral.ca.  Where the CadSoft EAGLE community meets.

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube