• 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 14732
  • 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
  • aCraig
    aCraig over 15 years ago

    fxf,

    The first line works fine. I never saw "netclass" documented as a design attribute. Guess I should have looked at axlDBGetDesign.

    The second line fails, just like I stated above in my original post. You can't test for "item->electrical". bug??

     

    Craig 

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

     It works for me using 16.2. The message ( "Attribute electrical not supported for the element, group") indicates that you have enabled axlDebug() and are accessing this attribute on a group that is not a netcalsss group. You should disable axlDebug

    nc = axlDBGetDesign()->netclass
    enc = setof(item nc item->electrical)
    • 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