• 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. How to set shortcut key to cycle through predefined trace...

Stats

  • Replies 8
  • Subscribers 161
  • Views 16848
  • Members are here 0
More Content

How to set shortcut key to cycle through predefined trace width settings

Dutch2
Dutch2 over 5 years ago

I'd like to assign a shortcut key to select a trace width from a predefined list while routing.

For example, I'd like to select between 0.082mm, 0.127mm, and 0.254mm.

Any suggestions on how to do this, or where to find more information on how to do it would be greatly appreciated!

P.

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

    try the following command:

    funckey w "settoggle width '0.082' '0.127' '0.254' ; FORM mini acon_line_width $width"

    Then when routing use the 'w' key to toggle thru the width values

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Dutch2
    Dutch2 over 5 years ago in reply to DavidJHutchins

    Thanks for your reply.

    I added the command, then selected Add connect and selected a pin.

    pressing the 'w' key just shows up in the Command window and does not toggle the line width?

    I'm sure I'm missing something obvious here.

    Command > funckey w "settoggle width '0.082' '0.127' '0.254' ; FORM mini acon_line_width $width"
    Pick first element.
    last pick: -26.5938 22.9616
    last pick: -26.5962 22.9502
    Target Symbol Pin is defined on BOTTOM.
    last pick: -26.5962 22.9502
    Command > w
    E- Command not found: w
    Command >

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

    I originally did this is 16.6, so I switched to 17.2 & it works for me without any issues, below is the journal file entries:

    \i (00:01:21) funckey w 'settoggle width `'0.082`' `'0.127`' `'0.254`' ; FORM mini acon_line_width $width'
    \i (00:01:26) add connect
    \t (00:01:27) Pick first element.
    \i (00:01:33) pick grid 75.2709 73.4239
    \t (00:01:33) last pick: 75.2729 73.4187
    \t (00:01:33) last pick: 75.2856 73.4060
    \t (00:01:33) last pick: 75.2856 73.4060
    \i (00:01:40) pick grid 75.3015 72.7620
    \t (00:01:40) last pick: 75.2983 72.7583
    \t (00:01:41) No DRC errors detected.
    \t (00:01:41) last pick: 75.2856 72.7710
    \i (00:01:44) settoggle width 0.082 0.127 0.254
    \i (00:01:44) FORM mini acon_line_width 0.082
    \i (00:01:44) setwindow form.mini
    \i (00:01:44) FORM mini acon_line_width 0.082
    \i (00:01:44) setwindow pcb
    \i (00:01:44) trapsize 306
    \i (00:01:53) pick grid 75.5589 72.2411
    \t (00:01:53) last pick: 75.5650 72.2376
    \t (00:01:53) No DRC errors detected.
    \i (00:01:54) settoggle width 0.082 0.127 0.254
    \i (00:01:54) FORM mini acon_line_width 0.127
    \i (00:01:54) setwindow form.mini
    \i (00:01:54) FORM mini acon_line_width 0.127
    \i (00:01:54) setwindow pcb
    \i (00:01:54) trapsize 306
    \i (00:01:55) pick grid 75.9695 71.8550
    \t (00:01:55) last pick: 75.9714 71.8566
    \t (00:01:55) No DRC errors detected.
    \t (00:01:55) last pick: 75.9587 71.8439
    \i (00:01:56) settoggle width 0.082 0.127 0.254
    \i (00:01:56) FORM mini acon_line_width 0.254
    \i (00:01:56) setwindow form.mini
    \i (00:01:56) FORM mini acon_line_width 0.254
    \i (00:01:56) setwindow pcb
    \i (00:01:56) trapsize 306
    \i (00:01:57) pick grid 76.6130 71.8795
    \t (00:01:57) last pick: 76.6191 71.8820
    \t (00:01:57) No DRC errors detected.
    \t (00:01:57) last pick: 76.5810 71.8439
    \i (00:01:59) pick grid 76.8827 72.1614
    \t (00:01:59) last pick: 76.8858 72.1614
    \t (00:01:59) No DRC errors detected.
    \i (00:01:59) prepopup 76.9011 72.5414
    \i (00:02:00) done

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

    Dutch,--- Just use this to assign your keys "funckey q FORM mini acon_line_width .2" The q is the key assignment and .2 is the routing width in mm. So just change both of these to meet your needs. Also clone it and assign other keys and widths.

    All of my widths are assigned of the QWERTY keys. Which makes it easy for me to rip through widths before routing something.

    cheers

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Dutch2
    Dutch2 over 5 years ago in reply to Dale Peterson

    Hi Dale,

    That works just fine. (I used key 1..4) It's the toggle that I can't get to work.

    Thanks.

    • 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