• 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. Adding a new menu item to Allegro PCB Editor

Stats

  • Replies 26
  • Subscribers 164
  • Views 27134
  • Members are here 0
More Content

Adding a new menu item to Allegro PCB Editor

chads108
chads108 over 13 years ago

 I want to add, or really append, a new menu item to the Allgro PCB Editor menu.  What is the easiest way to handle this without having to modify the installed menu?  Maybe someone has an example that I could follow?

  • Sign in to reply
  • Cancel
  • mcatramb91
    mcatramb91 over 13 years ago

    Cool, I am glad it worked for you.  Certainly easier to maintain vs. having to remember to update the standard Allegro.men file.

    I checked out your SKILL code.  Wow!   You have a lot of grid settings in the GRIDS menu, pretty cool.  I don't have as many grid scripts so I defined a function key to reply the scripts quickly:

    funckey g1 "replay grid1.scr"
    funckey g2.5 "replay grid2_5.scr"
    funckey g5 "replay grid5.scr"
    funckey g25 "replay grid25.scr"
    funckey g.1 "replay grid100.scr"

    Just type g1 on the Allegro command line to replay the grid1.scr.  I couldn't imagine setting as many function keys for all those different grids that you have but it is still good info any way so I figured I would share the funckey tip as well.

    Have fun!

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mcatramb91
    mcatramb91 over 13 years ago

    I believe it is possible to load a different menu depending on the tool you open but I haven't had time to research it further.   There are certain items in our custom menus that are only relevant when working in the Symbol editor or when running PCB SI.  It would be nice to load a different custom menu depending on the tool you open.  If you figure it out let me know.

    Regards,
    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 13 years ago

    For design types (e.g brd, mcm etc) see the doc for the function

        axlDesignType

    For just dra vs everything else

         axlIsSymbolEditor

    For either of these you can use axlUIMenuRegister since you need to perform the test at menu load time. For these you need to use the  axlTriggerSet with a registered callback function (see example file below).

    I don't believe their is a easy way of telling the difference between product levels except using some of the dynamic underscore env variables (do a "set" cmd and look at the end of the list generated). Some are documented in allegro.men but others you will need to reverse engineer.

    To differentiate between SI and PCB you allegro t menu loading via the axlTriggerSet('menu ...) then you can look at the menu name in the callbacks 1st argument.Allegro's menu is "allegro" while SI is "spectraquest". You can look the menu example file in <cdsroot>/share/pcb/examples/skill/ui/menu.il.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • chads108
    chads108 over 13 years ago

     Mike,

     I was able to figure out how to make the menus load based on the tool being used.   Granted I only use PCB Editor and Symbol Editor, but it does work for those two.  I ahve attached the code so you could see what worked for me.

     Chad

    Interphase_Dynamic_Menus.il
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JuergenWeber
    JuergenWeber over 12 years ago

     Hi,

    is this menu skill also available for concept hdl?

     Best regard 

    Jürgen

    • 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