微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微电子和IC设计 > IC版图设计交流 > 怎么将自己弄的skill程序集成到virtuoso的菜单上啊

怎么将自己弄的skill程序集成到virtuoso的菜单上啊

时间:10-02 整理:3721RD 点击:
如题,想将自己弄的skill程序集成到virtuoso的菜单上,以公司名做一个下拉菜单,有没有知道大概怎么弄啊,谢谢!

将下列代码保存为 layoutMenu.il,在.cdsinit/CIW中 load("/path/to/file/layoutMenu.il").

  1. procedure( ddCreateLayoutPulldownMenu()
  2. if( boundp( 'ddLayoutPulldownMenu )
  3. then ddLayoutPulldownMenu
  4. else
  5. hiCreatePulldownMenu(
  6. 'ddLayoutPulldownMenu
  7. "MenuName"; The munu name, U can named by your company name.
  8. list(
  9. hiCreateMenuItem( ; list of menu items
  10. ?name 'Item1
  11. ?itemText "Item1"
  12. ?callback"println(\"Item One\")"; Use you own function to define callback
  13. )
  14. hiCreateMenuItem( ; list of menu items
  15. ?name 'Item2
  16. ?itemText "Item2"
  17. ?callback"println(\"Item two\")"
  18. )
  19. ) ; list
  20. ) ; hiCreatePulldownMenu
  21. ) ; if
  22. ) ; procedure

  23. procedure( ddUserPostInstallTrigger(args)
  24. hiInsertBannerMenu(
  25. args->window
  26. ddCreateLayoutPulldownMenu()
  27. length( hiGetBannerMenus( args->window))
  28. )
  29. ) ; procedure

  30. ;; Triggers for adding it to layout and VXL window
  31. deRegUserTriggers("maskLayout" nil nil 'ddUserPostInstallTrigger)
  32. deRegUserTriggers("maskLayoutXL" nil nil 'ddUserPostInstallTrigger)

  33. ;; Triggers for adding it to schematic window
  34. deRegUserTriggers("schematic" nil nil 'ddUserPostInstallTrigger)

  35. ;; Trigger for adding it to schematic window in case of VXL mode
  36. deRegUserTriggers( "schSynthesisXL" nil nil 'ddUserPostInstallTrigger)

复制代码

成功啦,谢谢前辈指导!

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top