• 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. Allegro - Tip of the week: Creating a Command Shortcut with...

Stats

  • Replies 2
  • Subscribers 160
  • Views 3563
  • Members are here 0
More Content

Allegro - Tip of the week: Creating a Command Shortcut with Scriptmode +e

PCBTech
PCBTech over 3 years ago

Are you struggling to find the correct command while creating the funckeys?

The scriptmode command with correct options can help you identify the commands while you work on a layout, and then you can combine those commands to create a single funckey to achieve those steps.

For example, let us say you want to enter a drawing-level property to your board file. To do this, you need to go through the below process every time to open the Edit Property dialog box.

  1. Go to the Edit > Properties
  2. In the Find Filter’s “Find by Name” section, select “Drawing”.
  3. Now, you select the desired property and value.

To assign all the above steps to a funckey such that pressing a single key will open the Edit Property dialog box to edit the drawing-level properties, follow the below steps:

  1. Enter scriptmode +e in the Allegro command window and start performing the steps you want to put together as a single funckey. This option echoes the commands you enter, as shown below:

  1. Copy all the above commands to a single line, separating them with semicolons.
  2. To define a function key, put all commands within double quotes, as below:

              funckey e "property edit;setwindow form.find;FORM find name_type Drawing;FORM find find_by_name;setwindow form.findname;FORM findname objlist 'Drawing Select';FORM findname done"

  1. The funckey ‘e’ can now be used directly to open the Edit Property dialog box for adding/modifying/deleting properties at the drawing level.

 

Team PCBTech

Cadence Design Systems

  • Sign in to reply
  • Cancel
  • SOT23
    SOT23 over 3 years ago

    Thank you very much for this tip ! I've been wanting to do that for a long time ! Didn't knew about that scriptmode +e command.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Schulz Jordan
    Schulz Jordan over 3 years ago in reply to SOT23

    This approach works only on one design. If you want to reuse the same keys for all designs define the shortcut keys in env file

    • 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