• 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 add function in menu

Stats

  • Replies 2
  • Subscribers 161
  • Views 13268
  • Members are here 0
More Content

how to add function in menu

cm123
cm123 over 13 years ago

I want to add my function in menu and my code is the following:

axlCmdRegister("mymenu" 'my_menu)
procedure(my_menu()
let((q z)
q=axlUIMenuFind(nil -1)
z=axlUIMenuInsert(q 'popup "My Menu")
z=axlUIMenuInsert(nil "menu1" "menu_one")
z=axlUIMenuInsert(nil "menu2" "menu_two")
z=axlUIMenuInsert(nil "menu3" "menu_three")

)
)

But I need to run command "mymenu" when the PCB editor starts. How can I get automatically my menu when PCB editor starts.

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

    Hi

    Take a look at axlTrigger

    Best regards

    Ole

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

    The easiest way to add a simple menu is via axlUIMenuRegister. The doc for this command references an example skill file, it looks like you copied the code from the example but you are using the Trigger portion of the example. Use the example code at the end of this file in the menuTrig1 function. More complicated menu additions may require an axlTigger use model but I would 1st try  axlUIMenuRegister.

    • 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