• 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. PCB Design
  3. Allegro PCB 16.6 funckey show/hide subclasses

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 165
  • Views 2440
  • Members are here 0
More Content
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Allegro PCB 16.6 funckey show/hide subclasses

KSielewicz
KSielewicz over 10 years ago

Hi,

I want to create a shortcut that will allow to show or hide layers that are visible. For example I press "x" and then Package Geometry / Silkscreen TOP appears and I press "z" and this layer hides. Any idea how can I do that?

Thank you in advance,

Krzysztof

  • Cancel
  • Randy R
    Randy R over 10 years ago

    You could set up a couple of scripts to replay and assign them to keys.  One problem with using x & z is you will need to enter a carriage return.  If you use a couple function keys or control-x/control-z to avoid needing the carriage return.  Below are two scripts I recorded for turning Package Geometry/Silkscreen_Top On/Off.  Save them in two separate text files *.scr and then alias the keys you want to use to replay them; i.e. alias F5 replay "PackGeomOn.scr"  and alias F6 replay "PackGeomOff.scr".

    Turn On:

    color192
    setwindow cvf.dialog
    cvf layer_mode
    cvf layer_tree_item 'Package Geometry'
    cvf layers_visible package_geometry/silkscreen_top TRUE
    cvf okay
    setwindow pcb

    Turn Off:

    color192
    setwindow cvf.dialog
    cvf layer_mode
    cvf layer_tree_item 'Package Geometry'
    cvf layers_visible package_geometry/silkscreen_top FALSE
    cvf okay
    setwindow pcb

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • fxffxf
    fxffxf over 10 years ago

    try the following:

    funckey x color -vis "PACKAGE GEOMETRY/SILKSCREEN_TOP"

    funckey z color -invis "PACKAGE GEOMETRY/SILKSCREEN_TOP"

    You can also toggle visibility of a layer by using "-toggle" instead of -vis  -- This way you only need to define a single key.

    The color command has a number of options. To see them, on the Allegro command line do:

        color -help

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • KSielewicz
    KSielewicz over 10 years ago
    Thank you for your comments!
    • Cancel
    • Vote Up 0 Vote Down
    • 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