• 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. keyboard hotkeys

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 165
  • Views 16399
  • 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

keyboard hotkeys

HWDesigner
HWDesigner over 14 years ago

How can I assign "Control+G" hotkey, such as "grid toggle"?

I've assigned hotkeys from editing the env file inside pcbenv directory with lines of:

funckey "F2" "zoom fit"
funckey "sr" "rats component"
 I've tried funckey "Ctrl+g" "grid toggle" but it doesn't work. Whats the syntac to use the control key?

 Thanks.

  • Cancel
  • fxffxf
    fxffxf over 14 years ago

    TRY:  funckey ~G grid toggle

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • HWDesigner
    HWDesigner over 14 years ago

    Thanks, that worked perfect.

    So the tilda means "Control"? It works for uppercase and lowercase "G", which is nice. If I wanted to assign hotkeys using "Shift" key, what is that syntax?

    In my code I use quotation marks around the command name and the hotkey. Is it not needed?

    Thanks.

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

     The 'S' character indicates Shiftand the 'A' indicates Alt. You need to be careful with Alt since Microsoft reserves multiple key combos for its own use.

       alias ~SG grid toggle    - for Control-Shift G

       alias ~AG grid toggle    - For Control-Alt G

       alias ~ASG grid toggle  - for control-alt-shift G

    For control and function keys, the alias and funckey work the same. If you don't use keyboard modifiers then alias and function work slightly differently:

      alias g grid toggle    - Requires you to type g<RETURN>

      funkey g grid toggle - This just requires 'g' with no <RETURN>

    You can play on the Allegro status/command area to see what is done. For example type:

         alias <Control>g

    and you should see

        alias ~G

     The master env file (towards the middle) contains more examples and info

        <CDSROOT>/share/pcb/text/env

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • HWDesigner
    HWDesigner over 14 years ago

    Thank you for your help. Now I understand the difference between funkey and alias.

    Alias is case sensitive. I set up alias for specific grid settings that run a macro, but I created 2 aliases for upper case and lower case.

    For example:

    alias g50 replay grid50

    alias G50 replay grid50

     

     

    • 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