• 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. Turn on/off visibility features in the active layer

Stats

  • Replies 10
  • Subscribers 161
  • Views 4613
  • Members are here 0
More Content

Turn on/off visibility features in the active layer

Marw
Marw over 3 years ago

Hello All,

I am new user to cadence and I wanted to know how would write a script to turn on/off cond or via or pin..etc for the active layer using a bindkey?

Thanks

  • Sign in to reply
  • Cancel
Parents
  • DavidJHutchins
    DavidJHutchins over 3 years ago

    I have aliases defined in my env that might help you, shown below:

    alias alt     '(axlSetActiveLayer "etch/top")'

    alias alb     '(axlSetActiveLayer "etch/bottom")'

    alias vte     '((axlVisibleLayer "etch/top" t)(axlVisibleLayer "pin/top" t)(axlVisibleLayer "via class/top" t)(axlVisibleLayer "drc error class/top" t)(axlVisibleUpdate t))'

    alias vbe     '((axlVisibleLayer "etch/bottom" t)(axlVisibleLayer "pin/bottom" t)(axlVisibleLayer "via class/bottom" t)(axlVisibleLayer "drc error class/bottom" t)(axlVisibleUpdate t))'

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • DavidJHutchins
    DavidJHutchins over 3 years ago

    I have aliases defined in my env that might help you, shown below:

    alias alt     '(axlSetActiveLayer "etch/top")'

    alias alb     '(axlSetActiveLayer "etch/bottom")'

    alias vte     '((axlVisibleLayer "etch/top" t)(axlVisibleLayer "pin/top" t)(axlVisibleLayer "via class/top" t)(axlVisibleLayer "drc error class/top" t)(axlVisibleUpdate t))'

    alias vbe     '((axlVisibleLayer "etch/bottom" t)(axlVisibleLayer "pin/bottom" t)(axlVisibleLayer "via class/bottom" t)(axlVisibleLayer "drc error class/bottom" t)(axlVisibleUpdate t))'

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Marw
    Marw over 3 years ago in reply to DavidJHutchins

    Hello David,

    Thank you. I just tested, it is not exactly what I am looking for. Sorry for not explaining myself well

    Lets say I defined a bindkey alt for the "Cond" in the visibility tab. if I click alt once it will make the cond visible and if I click alt again it will turn it off. In the case of the your alias that you provided, I am only able to turn it on but not off

    Also, I want to be to apply the same concept above in the active layer I am in. Not only for the top and bottom. If I apply the alias you provide it, I have to repeat it 16 time in my env for the 16 layers I have in the design. 

    Hopefully this make sense

    • Cancel
    • Vote Up +1 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