• 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 skill command to the toolbar incl. Icon

Stats

  • State Not Answered
  • Replies 11
  • Subscribers 21
  • Views 2800
  • Members are here 0
More Content

Adding skill command to the toolbar incl. Icon

PatEscher
PatEscher over 1 year ago

Hello, 
does anyone know if it is possible to add a skill command I created/registered to the toolbar and also assign an icon to it programmatically via skill?

No problem to add the skill commands as a menu (like the File menu for example)
No problem in manually adding the skill comman to the toolbar by going through View --> customize toolbar

But as said, I want to do it programmatically, as otherwise all our users have to do by themselves

Thanks, 

Patrick

  • Sign in to reply
  • Cancel
Parents
  • JuanCR
    0 JuanCR over 1 year ago

    Hi Patrick

    I see you know the method through "View > Customize toolbar". Are you instead looking for a SKILL command that would add a menu or toolbar? Have you seen the follwoing article: 

    Article (20416434) Title: Adding and Appending Allegro Menu Items using SKILL
    URL: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od000000050ObEAI

    I'm attaching the PDF in case you don't have access to our COS website. 

    Adding_Appending_ AllegroMenuItems_SKILL.pdf

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • PatEscher
    0 PatEscher over 1 year ago in reply to JuanCR

    Hello Juan, 

    no, how to add a new menu like described in the pdf is not a problem. we are already doing this. --> this is going into the menu bar
    We want to add it into the tool bar, like when doing it through the View > Customize Toolbar 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • HLBhuvan
    0 HLBhuvan 9 months ago in reply to PatEscher

    Hello Pat,

    Kindly refer the picture how to add the tool bar and customise.

    Regards,

    HLB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • PatEscher
    0 PatEscher 9 months ago in reply to HLBhuvan

    Hello HLB, 

    I need a way to do this programmatically. Doing it through the UI it not an issue but is not what we need.

    Thanks

    Patrick

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Mhawley1
    0 Mhawley1 4 months ago in reply to PatEscher

    I am in the same boat. Say I have 100 Users of allegro and I need to add a Icon on all of their machines. I need a programmatic way to do this just like adding skill Menu's . 

    The only thing I can think of is recording a script that does it and forcing that to run right at bootup of the Allegro Instance . But thats hacky and error prone . Maybe this can be a feature added in the 25 release. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Mhawley1
    0 Mhawley1 4 months ago in reply to PatEscher

    I am in the same boat. Say I have 100 Users of allegro and I need to add a Icon on all of their machines. I need a programmatic way to do this just like adding skill Menu's . 

    The only thing I can think of is recording a script that does it and forcing that to run right at bootup of the Allegro Instance . But thats hacky and error prone . Maybe this can be a feature added in the 25 release. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • andakConsultingLtd
    0 andakConsultingLtd 4 months ago in reply to Mhawley1

    Skill menus can be added easily (posting this for everyone else) and then follow the script reply I gave earlier. Launching a script from SKILL is easy too.

    Define a CDS_SITE system variable like shown below:

    test it with:

    create your corporate folder structure inside that folder (skill, scripts, icons, footprints etc).

    For this discussion you need this one:

    Q:\ADK_SITE\pcb\skill

    in this folder you need to do 2 things:

    1. in allegro.ilinit (create it if it's missing) add this line: load "company_name_menu.il"

    2.have a file named company_name_menu.il with a content like shown below:

    first item in the list is the name to display in the menu, the second item in the list is the alias you gave to your SKILL function, as shown at the bottom.

    file: company_name_menu.il

    KNEMenuList = '(
        (popup "KNEOS")
            ("DFA Check" "dfaer")
            ("Open Symbol's Lib Path" "ofl")
            ("WEB Search" "dbpi")
        )

    procedure( KNEMenuLoadTrig()
        ; add a new menu item before the help menu
        res = axlUIMenuRegister(-1 KNEMenuList)
    ) KNEMenuLoadTrig()

    DFA Check file entry, loaded in allegro.ilinit with load "dfaErrorCheck.il", to depict complete setup of top menu

    file: dfaErrorCheck.il

    axlCmdRegister( "dfaer" `dfaerMain)

    (defun dfaerMain ()
        printf("\nDFA error check by ANDAK CONSULTING LTD (c) 2019-2025.\n")
    ); end defun

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • PatEscher
    0 PatEscher 4 months ago in reply to andakConsultingLtd

    having a menu added through skill is not a problem. the question here is about the Toolbar itself, incl. Icon

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