怎么将自己弄的skill程序集成到virtuoso的菜单上啊
时间:10-02
整理:3721RD
点击:
如题,想将自己弄的skill程序集成到virtuoso的菜单上,以公司名做一个下拉菜单,有没有知道大概怎么弄啊,谢谢!
将下列代码保存为 layoutMenu.il,在.cdsinit/CIW中 load("/path/to/file/layoutMenu.il").
- procedure( ddCreateLayoutPulldownMenu()
- if( boundp( 'ddLayoutPulldownMenu )
- then ddLayoutPulldownMenu
- else
- hiCreatePulldownMenu(
- 'ddLayoutPulldownMenu
- "MenuName"; The munu name, U can named by your company name.
- list(
- hiCreateMenuItem( ; list of menu items
- ?name 'Item1
- ?itemText "Item1"
- ?callback"println(\"Item One\")"; Use you own function to define callback
- )
- hiCreateMenuItem( ; list of menu items
- ?name 'Item2
- ?itemText "Item2"
- ?callback"println(\"Item two\")"
- )
- ) ; list
- ) ; hiCreatePulldownMenu
- ) ; if
- ) ; procedure
- procedure( ddUserPostInstallTrigger(args)
- hiInsertBannerMenu(
- args->window
- ddCreateLayoutPulldownMenu()
- length( hiGetBannerMenus( args->window))
- )
- ) ; procedure
- ;; Triggers for adding it to layout and VXL window
- deRegUserTriggers("maskLayout" nil nil 'ddUserPostInstallTrigger)
- deRegUserTriggers("maskLayoutXL" nil nil 'ddUserPostInstallTrigger)
- ;; Triggers for adding it to schematic window
- deRegUserTriggers("schematic" nil nil 'ddUserPostInstallTrigger)
- ;; Trigger for adding it to schematic window in case of VXL mode
- deRegUserTriggers( "schSynthesisXL" nil nil 'ddUserPostInstallTrigger)
成功啦,谢谢前辈指导!