• 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 APD
  3. Syntax for Alias and Funckey commands

Stats

  • Replies 5
  • Subscribers 66
  • Views 18729
  • Members are here 0
More Content

Syntax for Alias and Funckey commands

sivavayu
sivavayu over 5 years ago

Can someone point to a resource for syntax for Alias/Funckey scripting? I came across very useful hotkeys online and would like to write my own, but limited by the lack of knowledge of the syntax. 

Some examples I came across online are as shown below. I can understand them, but I am sure the capability of this funckeys is limitless, if basic syntax is known. I could not find this syntax anywhere in Allegro help. 

Using a shift or ctrl key in combination with mouse wheel. Add the following line in the env file and start PCB Editor

button Swheel_up "FORM mini Alt; FORM mini Alt_subclass XXXXX; pop bbdrill -cursor"

While routing press the shift key and roll the mouse wheel in upward direction to place the via. To use the control key in place of shift then replace 'Swheel_up' with 'Cwheel_up' in the above line. Similarly if you want to use downward direction of wheel then replace 'Swheel_up' with 'Swheel_down'. If you want to use it with working layer model instead of alternate layer replace 'Alt' with 'WL'.

Source: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od00000004uHFEAY&pageName=ArticleContent

Thanks,
Siva

  • Sign in to reply
  • Cancel
  • masamasa
    masamasa over 5 years ago

    you can refer to the following link

    http://referencedesigner.com/tutorials/allegro/allegro_page_29.php

    you can always use "scriptmode +e" to find out the actual command.

    just type scriptmode e+ at the command line then you will be able to see the actual syntax of the command you are using.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • sivavayu
    sivavayu over 5 years ago in reply to masamasa

    Thank you very much! This is very helpful information. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • sivavayu
    sivavayu over 5 years ago in reply to masamasa

    Any place where I can find what syntax can be used for buttons and keys?

    For example, I have seen these cases:

    • button SWheel_up
    • SLeft
    • SRight

    Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • masamasa
    masamasa over 5 years ago in reply to sivavayu

    for shift+wheelup

    button Swheel_up "copy"

     

    for shift+ctrl+wheelup

    button SCwheel_up "copy"

     

    for ctrl+wheelup

    button Cwheel_up "copy"

     

    for shift+left

    funckey SLeft "copy"

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • masamasa
    masamasa over 5 years ago

    these sites might help you as well.

    https://www.youtube.com/watch?v=xnT0PlR17-A

    https://www.flowcad.de/AN/FlowCAD_AN_PCB_SiteAndHome.pdf (pages 10&11)

    https://www.ema-eda.com/sites/ema/files/ALLEGRO_Cheatsheet.pdf

    https://www.ema-eda.com/sites/ema/files/ALLEGRO_Cheatsheet_Bonus.pdf

    • 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