修改的环境变量下的,现在看到了:)
不错值得学习
版本為16.3以上,還可以寫成skill,做成動態的menu,這樣就可以不用修改allegro.men的內容
只要在allegro.ilinit檔案加入 load("fDynamicMenus.il")
;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)
学习完毕,打完收工!
楼主辛苦了!
好东西,很详细
#ifndef _ALLEGRO_ORCAD
MENUITEM "Software &Updates", "http http://downloads.cadence.com"
#endif
这种#ifndef和#endif是啥意思的,在这起什么作用啊?
XYX365 发表于 2013-7-19 15:03 static/image/common/back.gif
版本為16.3以上,還可以寫成skill,做成動態的menu,這樣就可以不用修改allegro.men的內容
只要在allegro.ili ...
请问怎么用啊 ,把我需要的菜单添加到什么地方
真是好东西,谢谢楼主分享
这样的话,那些.il的文件要放在哪里呢