• 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 Design
  3. Drop Down menu

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 126
  • Views 15118
  • 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

Drop Down menu

AnuJoamon
AnuJoamon over 16 years ago

my skill code creates a drop down menu in the layout window. But when I load the skill again i get an error -
          "*Error* User post install trigger already registered for viewType maskLayout."

How to update the code for the removing the error?

Thanks
Anuj

  • Cancel
  • AnuJoamon
    AnuJoamon over 16 years ago

    Sorry, it is Pull Down menu, with the code like

    procedure( trUserPostInstallTrigger(args)
     hiInsertBannerMenu(
      args->window
      trCreateLayoutPulldownMenu()
      length( hiGetBannerMenus( args->window))
     ) ; hiInsertBannerMenu
    ) ; procedure trUserPostInstallTrigger

    deRegUserTriggers("maskLayout" nil nil 'trUserPostInstallTrigger)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AnuJoamon
    AnuJoamon over 16 years ago

    the pull-down menu is created

    procedure( trCreateLayoutPulldownMenu()
     if( boundp( 'trLayoutPulldownMenu ) then
      trLayoutPulldownMenu
     else
      hiCreatePulldownMenu(
      'trLayoutPulldownMenu
      "TEST"
      list(
       hiCreateMenuItem( ; list of menu items
        ?name 'CleanLSW
        ?itemText "TEST"
        ?callback  "LAYOUT_TEST()"
        ) ; hiCreateMenuItem
       ) ; list
      ) ; hiCreatePulldownMenu
     ) ; if boundp
    ) ; procedure trCreateLayoutPulldownMenu

     Please also suggest, if I can write the Menu create procedures above the callback procedures or it needs to be in bottom-up approach.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Austin CAD Guy
    Austin CAD Guy over 16 years ago

     Hi Anu

     To answer your last question, you can define the procedures you are using in the menu before or after the menu item is defined. It is independent of the item definition and will only cause an error if it is not available when the menu button is pushed.

    Your initial issue is because there is already user triggers set for maskLayout.  You have to get that information and add your trigger to it.Note that if there is more than one procedure defined for a trigger, you will only get the first procedure.

    appInfo = deGetAppInfo( "maskLayout" ) ;returns a property list where:

    userApp = appInfo->userAppTrigList ; This is the user pre install trigger

    userMenu = appInfo->userMenuTrigList ; This is the user menu trigger

    userPost = appinfo->userPostInstallTrigList ; This is the post intall list

     deUnRegUserTriggers("maskLayout") ; Unregister the triggers

    deRegUserTriggers( "maskLayout" userApp userMenu 'trPostUserInstallTrigger)

     You probably can find more info on these in the Virtuoso Design Environment SKILL Reference.

     Ted

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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