• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. Obtaining List of All Etch Layers in a Design

Stats

  • Replies 13
  • Subscribers 162
  • Views 18381
  • Members are here 0
More Content

Obtaining List of All Etch Layers in a Design

wERerABbiT
wERerABbiT over 16 years ago

 Hi All,

May I know if there is a function to list all the etch layers in a design (including the layer type, such as plane or conductorl)?

For example if my design has 10 layers named TOP, LAYER2, LAYER3,..... BOTTOM.

How do I get the list of layer names and the corresponding layer type?

Thanks All 

 

 

 

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

    Thank you, both.  I definitely need to delve into the world of Skill.  I see sooooo much power and capability, but keep getting caught at the bottom of the learning curve.  It's time.  Yes, it's time.   :)

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

    xsection=axlGetXSection()

    Then you will have to traverse the information filtering out what you need.

    For instance the second dbid of xsection will be the "TOP" layer.

    top = nth(1 xsection)

    Then do top->?? to see the information of that layer.

    Skill > top->??
    ("CONDUCTOR" "COPPER" "  2.530000 mil" "0 w/cm-degC" "580000.000000 mho/cm"
        "4.500000" nil nil "0" ""
        "3.700000" "0" nil "90.000000"
    )

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

    A quick foreach:

    xsection = axlGetXSection()
    foreach(layer xsection
        cond(
        (cadr(layer) == "CONDUCTOR"
        axlMsgPut("layer name = %s\n" car(layer))
        axlMsgPut("Layer type = %s\n" cadr(layer))
        )
        (cadr(layer) == "PLANE"
        axlMsgPut("layer name = %s\n" car(layer))
        axlMsgPut("Layer type = %s\n" cadr(layer))
        )
        )
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
<
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information