I have written a simple Skill function to automatically add a menu to every new schematic and layout view, based on the following thread and Cadence Tutorial for IC Skill Language Programming 3: /forums/t/17476.aspx?PageIndex=1
I load in the file containing the function definition into my .cdsinit file but the menu does not start appearing until I copy the same load statement into my CIW. Once I do that, the function works just fine and the menus show up as expected for each new window I open.
My virtuoso session does load in the function from .cdsinit file: when I enter addPlotMenu() into CIW, it gives me an error regarding usage (too few arguments), not about an undefined function, so it must be getting loaded in.
Can you help me figure out what the problem might be? I want the menus to show up without having to load in any files through CIW. My code is pasted below.
TrPlot = hiCreateMenuItem(?name 'TrMenuItemPlot?itemText "Plot"?callback "plotFunctionWrapper()")
deRegUserTriggers("schematic" nil 'addPlotMenu)deRegUserTriggers("maskLayout" nil 'addPlotMenu)
Two errors in the code:1. You missed the "hiInsertBannerMenu".2. The "deReUserTriggers" was missing one optional argument which have to be set to "nil".
See my modifications to your code: