EDA365电子工程师网

标题: 求axlTriggerSet用法 [打印本页]

作者: pallayout    时间: 2014-7-16 13:44
标题: 求axlTriggerSet用法
我用 axlUIMenuFind()axlUIMenuInsert() 命令写了自动添加菜单的 il 文档
虽在加载ilinit文件时运行成功,但之后又被加载allegro.men,菜单给还原了。无法实现自动添加菜单
我想知道axlTriggerSet用法,越祥越好。

下面是我找到的资料
添加菜单的几种方式:
MENU CUSTOMIZATION METHODS
Provide your own customization menu via CDS_SITE. Replace the Cadence provided menu (.men file) with your own.

Advantages: Relatively easy and no Skill programming required.

Disadvantages: For new releases need to merge your menu changes with new Cadence menus. May need to modify multiple menus
Overload your menu customizations on Cadence menus via Skill axlUIMenuRegister.

Advantages: Relatively easy with minimal Skill programming. Depending on your site's additions may be immune to many Cadence menu changes.

Disadvantages: Cannot delete Cadence menu items or restrict your changes to a one Cadence menu.
Register a axl menu Trigger notification via axlTriggerSet.

Advantages: Almost as much flexibility as overriding the default menu file including targeting specific menus.

Disadvantages: Need to examine your Skill code with new Cadence releases. Requires much more Skill programming knowledge.


Description

This allows you to register menu items to be loaded when Allegro loads a new menu. It is a combination of axlUIMenuFind and axlUIMenuInsert.

If more elaborate menu configuration is required consider calling axlTriggerSet directly.

我想知道axlTriggerSet用法,越祥越好。最好能帮我解决在allegro启动时,就自动添加菜单的方法,
作者: betamelody    时间: 2014-7-16 16:03
http://www.cadence.com/Community ... aspx?postID=1331809
作者: pallayout    时间: 2014-7-17 13:54
本帖最后由 pallayout 于 2014-7-17 14:02 编辑

   (axlTriggerSet ‘menu ‘loadMyMenu)
调试通过,就是不知怎么调用,没有看到菜单
Function loadMyMenu already registered for 'menu trigger
作者: pallayout    时间: 2014-7-17 14:33
调试通过了,谢谢betamelody,您是我的老师




欢迎光临 EDA365电子工程师网 (https://bbs.elecnest.cn/) Powered by Discuz! X3.2