DESIGNrev allows users to create the custom drop down menu.
Here is an example script. Hope you guys enjoy
Thanks Saunder! I just tried it myself and they both work great.
I tried to use "MGC_CWB_CONFIG_DIRS" and "source" the file inside "wbinit.tcl". But it seems "cwb" object in Line#39 is null (or not exists yet). Did I skip some important steps in order to have this menu in the startup?
I just tested it myself and it works. What if you tried to souce that file in the DESIGNrev TCL console, are you able to see the custom menu in your section? ?
Yes, it works in shell console. I wonder should I add any option like "-gui" to start the program?
If you are using DRV to view a layout database, then you dont need the "-gui" option.
It is mainly used for a DESIGNrev batch script operation that require some TK application.
I think my company's program wrapper does funny things. I don't why the wbinit.tcl got sourced before the cwb object been created. Is there a way that I can wait and detect an exist cwb object before I source the menu tcl file?
The easiest solution is to add a "-s" switch and then followed by the path to the script when you invoke DRV
ex: calibredrv "layout_path" -s custom_drop_down_menu.tcl
Yes, the "-s" switch works. About wbinit.tcl option, I think it is sourced before the layout GUI shows up so cwb object is not ready yet. Thanks. ~Eric.Wu
One more question ... how can I create a menu item based on information in $cwb bindKey? For example, I would like to create another menu item in my own pull-down menu with the bindKey action "cwbCloseLayout"?
Retrieving data ...