• 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. Export used class and sub class

Stats

  • Replies 5
  • Subscribers 160
  • Views 13101
  • Members are here 0
More Content

Export used class and sub class

LoGanathan
LoGanathan over 7 years ago

I would like to see what are all the class/sub class is used in the allegro footprint.

  • Cancel
  • Sign in to reply
Parents
  • B Bruekers
    B Bruekers over 7 years ago

    A possible way: 

    axlSetFindFilter(?enabled '("invisible" "all") ?onButtons '("all"))
    axlAddSelectAll()
    l_objects = axlGetSelSet()
    l_layers = remq(nil unique(l_objects~>layer))
    axlClearSelSet()

    Bram

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • DavidJHutchins
    DavidJHutchins 9 days ago in reply to B Bruekers

    I noticed an anomaly when trying this, it reports "TOP" & "BOTTOM" without a Class prefix, below is the bottom of my journal file:

    \d (00:26:05) Design opened: C:/Cadence/SPB_22.1/share/pcb/examples/board_design/cds_routed.brd
    \i (00:26:05) shapeedit
    \i (00:26:13) skill 'load("classes.il")'
    (00:26:13) function classes redefined
    (00:26:13) t
    \i (00:26:19) skill 'pp classes'
    (00:26:19) procedure(classes()
    (00:26:19) let((l_objects l_layers)
    (00:26:19) axlClearSelSet()
    (00:26:19) axlSetFindFilter(?enabled
    (00:26:19) '("invisible" "all") ?onButtons
    (00:26:19) '("all")
    (00:26:19) )
    (00:26:19) axlAddSelectAll()
    (00:26:19) (l_objects = axlGetSelSet())
    (00:26:19) (l_layers = remq(nil
    (00:26:19) unique((l_objects~>layer))
    (00:26:19) ))
    (00:26:19) axlClearSelSet() l_layers
    (00:26:19) )
    (00:26:19) )
    (00:26:19) nil
    \i (00:26:23) skill (classes)
    (00:26:23) ("TOP" "ETCH/TOP" "ETCH/BOTTOM" "ETCH/VCC" "ETCH/GND"
    (00:26:23) "DRAWING FORMAT/DRAWING_ORIGIN" "BOTTOM" "BOARD GEOMETRY/TOP_ROOM"
    (00:26:23) )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave 9 days ago in reply to DavidJHutchins

    TOP and BOTTOM are the "layers" that symbols are on. They don't have a class. I think using "layer" for the name of the attribute for symbols is just a convenience.

    Is this new, that symbols have a layer? I don't recall this in older versions of Allegro.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • eDave
    eDave 9 days ago in reply to DavidJHutchins

    TOP and BOTTOM are the "layers" that symbols are on. They don't have a class. I think using "layer" for the name of the attribute for symbols is just a convenience.

    Is this new, that symbols have a layer? I don't recall this in older versions of Allegro.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • DavidJHutchins
    DavidJHutchins 9 days ago in reply to eDave

    Thanks for the clarification, it was documented as far back as 17.4...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • DavidJHutchins
    DavidJHutchins 9 days ago in reply to DavidJHutchins

    I changed the find filter to the following:

    axlSetFindFilter(?enabled '("INVISIBLE" "ALLTYPES" "NOSYMBOLS") ?onButtons '("ALL"))

    to resolve the issue :)

    • 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