• 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. Creating custom toolbar manu item on program startup

Stats

  • State Verified Answer
  • Replies 1
  • Subscribers 17
  • Views 216
  • Members are here 0
More Content

Creating custom toolbar manu item on program startup

UsableLoki
UsableLoki 1 day ago

I have a program that will create a custom menu toolbar item along with its submenu items.  I tried to run this procedure that creates them on startup by placing the run function inside C:\SPB_Data\pcbenv\allegro.ilinit.  Through the console I can confirm that my function properly ran and is loaded, but the menu toolbar does not have my custom item.  If I rerun the function my menu toolbar will finally be created.  I know this can be done as there is another function that we contracted Cadence to build which is also called in the allegro.ilinit, however the file called is encrypted so I can't see what was done that is different from my attempt.  Any help would be great. 

Below is relevant snippets of my code.


Content within the .ilinit-

fileLocation = "S:/.../GUI_Implementation.il"
  if(isReadable(fileLocation)
  then
  load(fileLocation)
  refresh_Menu()
  else
  printf("Error loading: %s\n" fileLocation)
  )

file GUI_Implemenatation.il-

procedure(refresh_Menu()

axlUIMenuInsert(axlUIMenuFind(nil -1) 'popup "CUSTOM-SKILL")

)

  • Sign in to reply
  • Cancel
  • UsableLoki
    +1 UsableLoki 1 day ago

    Found the error to anyone it concerns, you must call axlTriggerSet('menu '[function]) so that the effect runs upon creation of the menu bar.  Also, you can't run [function] without a variable so you can nest your function in another function with a useless t_value and call that in the trigger

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