• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Pulldown menu not working through .cdsinit file

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 144
  • Views 17427
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pulldown menu not working through .cdsinit file

preetgarcha
preetgarcha over 12 years ago

Hi,

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: http://www.cadence.com/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.

Regards,

Preet

procedure( addPlotMenu(args)

TrPlot = hiCreateMenuItem(
?name 'TrMenuItemPlot
?itemText "Plot"
?callback "plotFunctionWrapper()"
)

;unless(boundp('TrPulldownMenu)
list(hiCreatePulldownMenu(
'TrPulldownMenu
"Plot"
list(TrPlot)
)
); list
;);unless

); procedure


deRegUserTriggers("schematic" nil 'addPlotMenu)
deRegUserTriggers("maskLayout" nil 'addPlotMenu)

  • Cancel
Parents
  • berndfi
    berndfi over 12 years ago

    Andrew,

    I read your initial post from the related thread after I posted my suggestion.
    In fact the above code form "preetgarcha" does not work for me,
    maybe because of the reason you described.
    What is expected to be the trace output, it does not show anything to me?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • berndfi
    berndfi over 12 years ago

    Andrew,

    I read your initial post from the related thread after I posted my suggestion.
    In fact the above code form "preetgarcha" does not work for me,
    maybe because of the reason you described.
    What is expected to be the trace output, it does not show anything to me?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information