• 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. Scroll through active films and Single Layer mode

Stats

  • State Suggested Answer
  • Replies 8
  • Answers 2
  • Subscribers 162
  • Views 8154
  • Members are here 0
More Content

Scroll through active films and Single Layer mode

Visakh
Visakh over 2 years ago

Hai,

Is there an option to quickly scroll/switch active Films like we perform in Altium (combination Shift+Ctrl+Mouse Scroll) and Single layer mode (Shift+S) 
Cadence is environment requires more Mouse Clicks.
Is there a way to directly input commands into command window rather than using the mouse to select.

Thank you

  • Sign in to reply
  • Cancel
  • masamasa
    0 masamasa over 2 years ago

    i would use funckeys.

     

    you can use the following funckey on your env file:

    funckey 1 "QtSignal ColorVisibilityPane CVPGlobalVisOff clicked;QtSignal CVPLayerGrid CVPBoxAllL1 clicked true"

     

    you press the "1" key, nothing but only the L1 layer shows up.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • John T
    0 John T over 1 year ago

    Hello Hai, we have seen your post to the community and would like to add the following:

    As standard the "-" and "+" keys allow you to quickly scroll to the desired layer when you commence routing.

    It is also possible to set up a function key to call the popup menu selecting the "swap layer" command. This swaps active and alternate layers if the route command is running. To set this up simply enter funckey s 'pop swap'  (where "s" becomes the key press to two swap layers) 

    Another powerful function key you can set is the following: 

    funckey v "setwindow form.mini FORM mini alt_subclass TOP setwindow;pop bbdrill" 

        This will place a via during routing and continue routing on the new active layer.

         Even better, if you are operating in working layer mode, then the add via window will appear at your cursor and allow you to quickly choose which layer you wish to route next based upon the working layers you have set in the active options tab. 

    You can prepare these function keys to automatically operate in all your designs by setting them in the env file located in your pcbenv folder. These things are typically set up by company engineering admins to suit operational norms. You can check your function keys and alias commands at any time using menu Tools > More > Aliases/Function Keys... 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Visakh
    0 Visakh over 1 year ago in reply to John T

    Hai, Thank you for your reply.

    I have added

    funckey + subclass -+
    funckey - subclass --

    within the env file to switch the layers, but the problem is "+ and -" keys are on the far right,  and my right hand is always on the mouse.
    And at the left side keys are already assigned to many other functions.

    What I really need is a combination of "Ctrl+Shift+Mouse Scroll" to switch layers, so I don't really have to move my fingers much.

    Is there a way to assign "Middle Mouse Click, Middle Mouse Scroll" within the env file.

    - Thank you,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • John T
    0 John T over 1 year ago in reply to Visakh

    Hi Visakh, Ok I have got it with some digging:  

    In order to provide the functionality asked for Allegro has added the button, and unbutton commands.

    button

    Assigns an action to occur when you roll the mouse wheel up or down. Works only in Cadence tools on Windows, not at the operating-system level. The default mouse wheel behavior is zoom in and out, which is set in the global env file.

    Syntax

    button <modifier> <wheel> <wheel_up> <wheel_down> <action to execute>

    modifier - Create buttons with or without Shift and Control keys or a combination of both. Modifiers are S (shift key), C (control key), and SC (shift and control) and are case sensitive.

    Please try the following: 

    button Swheel_up subclass -+   

    // Changes the active subclass when you press the Shift key and roll the mouse wheel up.

    button Swheel_down altsubclass -+   

     // Changes to an alternative subclass when you press the Shift key and roll the mouse wheel down while using the .add connect command.

    You can also try the following examples as time savers using the Control key: 

    button Cwheel_up add connect
    button Cwheel_down done // Or "slide" etc...
    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Visakh
    0 Visakh over 1 year ago in reply to John T

    Thank you John.

    I have added

    button SCwheel_up "subclass -+"
    button SCwheel_down "subclass --"

    to achieve the functionality. Now Ctrl+Shift+Mouse Scroll will turn on the adjacent layer.

    Is there any way I can turn off the previous layer?
    example: I am in L1-layer, Ctrl+Shift+Mouse Scroll will turn on L2 additionally it must Turn off L1

    Is there a way I can achieve this ?

    Thank you again!!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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