|
|
发表于 2013-7-19 15:03:02
|
显示全部楼层
版本為16.3以上,還可以寫成skill,做成動態的menu,這樣就可以不用修改allegro.men的內容
只要在allegro.ilinit檔案加入 load("fDynamicMenus.il")
fDynamicMenus.rar
(643 Bytes, 下载次数: 58)
- ;filename:fDynamicMenus.il
- ;
- ; Adding User Defined Menus in Allegro 16.3 using axlUIMenuInsert and axlTriggeSet
- ; Create Skill Tools Menu Entries
- lSkillMenu = '(
- (popup "&allegro-skill.com")
- ("&Change Via's Net" "ch_via_net")
- ("&Replace Via" "rp_via")
- (popup "&Change...")
- ("&Shape To Line" "ch_shape_to_line")
- ("&Line To Shape" "cline2shape")
- (end)
- (popup "&Placement...")
- ("&Import" "imp_placement")
- ("&Export" "exp_placement")
- (end)
- ("&Shape Fillet" "shape_fillet")
- (separator)
- ("&Encrypt Skill" "encrypt_skill")
- ("&Bga Auto Fanout" "bga_fanout")
- ("&About" "http http://www.allegro-skill.com")
- ("&Mail" "mail admin@allegro-skill.com")
- )
- procedure(fnDynamicMenusTrig(tMenuFile)
- let((xMenuID)
- printf("MENU UPDATES COMPLETE = Standard Cadence %s + Customizations\n" tMenuFile)
- xMenuID = axlUIMenuFind(nil -1)
- axlUIMenuInsert(xMenuID lSkillMenu)
- )
- )
- ; Using the trigger function directly
- axlTriggerSet('menu 'fnDynamicMenusTrig)
复制代码 |
评分
-
查看全部评分
|