• 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. Selecting objects based on their layer

Stats

  • Replies 7
  • Subscribers 158
  • Views 16401
  • Members are here 0
More Content

Selecting objects based on their layer

archive
archive over 18 years ago

Hello,
I'm new to SKILL and need some help with selecting objects.  I would like to know if it's possible to create a selection set of certain objects base on their layer name.  For example I want to select all of the clines on layer L02.  Is that possible, and if so, how can I do it?

Thanks in advance,
Mark


Originally posted in cdnusers.org by mgore@amkor.com
  • Sign in to reply
  • Cancel
Parents
  • archive
    archive over 18 years ago

    Mark
    I'll assume you have a grounding in programming in a high level OOP language so I'll just put some pseudocode here for you.
    Basically your routine could be something like:

    a = axlDBGetDesign()
    an = a -> nets ;"an" now contains a list of all net objects in the db
    foreach net in an
    iterate n times, x = nth(n an) -> branches ; and x is now a list of the nets branches
    foreach branch in x
    iterate n times, y = nth(n x) -> children ; and y is now a liost of that branches children
    foreach child in y
    iterate n times, z = nth(n y)
    if z -> objType == "path"
    && if z -> layer == "ETCH/L02"
    then
    zs = z -> segments
    and then
    se = zs -> startEnd

    and so on
    There are very likely more efficient ways to do the same thing and an experienced Skill programmer would find them. But in a pinch all you need to know is the basic db structure and use some simple loops to match the stuff you want.

    Good luck...
    Ashcan


    Originally posted in cdnusers.org by AshCan
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • archive
    archive over 18 years ago

    Mark
    I'll assume you have a grounding in programming in a high level OOP language so I'll just put some pseudocode here for you.
    Basically your routine could be something like:

    a = axlDBGetDesign()
    an = a -> nets ;"an" now contains a list of all net objects in the db
    foreach net in an
    iterate n times, x = nth(n an) -> branches ; and x is now a list of the nets branches
    foreach branch in x
    iterate n times, y = nth(n x) -> children ; and y is now a liost of that branches children
    foreach child in y
    iterate n times, z = nth(n y)
    if z -> objType == "path"
    && if z -> layer == "ETCH/L02"
    then
    zs = z -> segments
    and then
    se = zs -> startEnd

    and so on
    There are very likely more efficient ways to do the same thing and an experienced Skill programmer would find them. But in a pinch all you need to know is the basic db structure and use some simple loops to match the stuff you want.

    Good luck...
    Ashcan


    Originally posted in cdnusers.org by AshCan
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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