• 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 Scripting - Skill
  3. Adding menu item at bottom of list in Layout 22.1

Stats

  • State Suggested Answer
  • Replies 2
  • Answers 1
  • Subscribers 17
  • Views 1539
  • Members are here 0
More Content

Adding menu item at bottom of list in Layout 22.1

Jim OMahony
Jim OMahony over 1 year ago

Hi,

I have added a menu item under the Tools menu using the following command:

axlUIMenuRegister( "padeditdb" '( ("Create a Via according to IPC rules..." "EXL_ViaStack"  ) ) )

This adds the command at the top of the list. Can anyone tell me how to add the command at the bottom of the list ?

Thanks.

  • Cancel
  • Sign in to reply
  • mahimag
    0 mahimag over 1 year ago

    Hi, 

    axlUIMenuRegister, allows you to register menu items to be loaded when Allegro loads a new menu. It is a combination of axlUIMenuFind and axlUIMenuInsert.

    axlUIMenuFind has the option of top or bottom which indicates the axlUIMenuInsert to insert the value in that location. For example:

    q = axlUIMenuFind( nil -1 'bottom)
    z = axlUIMenuInsert(q "Google" "http ">http://google.com" )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Jim OMahony
    0 Jim OMahony over 1 year ago in reply to mahimag

    Thanks mahimag. I was trying to find a way to use the axlUIMenuRegister command as it is possible to use on a single line.

    I have ended up with the following code which takes 7 lines :

    procedure( PadMenuInsert(t_menufile)
    let(( q m )
    q = axlUIMenuFind( nil "padeditdb" 'bottom)    
    m = axlUIMenuInsert( q "Create a Via according to IPC rules..." "EXL_ViaStack" )
    );let
    );defun
    axlTriggerSet('menu  'PadMenuInsert)

    This puts my menu in Tools>Padstack at the bottom of the list.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • 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