• 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. How to get a list of Electrical Netclass groups?

Stats

  • Replies 7
  • Subscribers 159
  • Views 14728
  • Members are here 0
More Content

How to get a list of Electrical Netclass groups?

aCraig
aCraig over 15 years ago

Does anyone know how to get a list of electrical netclasses? I've tried:

   groups = axlSelectByProperty("group" "ELECTRICAL_CONSTRAINT_SET")

but this only returns "BUS" and "DIFF_PAIR". I've also tried: 

   groups = setof(g axlDBGetDesign()->groups g->type == "NETCLASS")

this returns all the physical, spacing and electrical netclasses, but for some reason I can't test any of the physical, spacing or electrical properties, such as car(groups)->electrical. This give a *WARNING* (dbidGetProp): Attribute electrical not supported for the element, group.

TIA

-Craig 

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 15 years ago
    axlCnsList('electrical)
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • aCraig
    aCraig over 15 years ago

    Hi Dave,

    That will give me all the electrical constraint sets (ECS). I'm looking for the net classes (NCI) defined in the electrical constraint worksheet.

     -Craig

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 15 years ago
    Hi Craig,

    Sorry. Does axlNetClassGet help? You may have to process each net.

    Cheers, Dave
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • aCraig
    aCraig over 15 years ago

    Dave,

    I thought about axlNetClassGet,  but that seems like such a hack to have to process 1200 nets in the design to get 10 electrical net classes. I hoping for a clean implementation, anyway I was able to get the electrical net classes that way. Maybe an SR to and 'netclass to axlNetClassGet.

    Thanks,

    Craig 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 15 years ago

     Do a

      nc =  axlDBGetDesign()->netclass   ; get all netclasses in design

      enc = setof(item nc item->electrical) ; filter to to just those in the electical domain

    • 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