• 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. Help on creating own menu in layout window

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 15550
  • 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

Help on creating own menu in layout window

SarathKumarG
SarathKumarG over 13 years ago

 Hi all,

       In Layout Window we have Create,Edit,tools,assura ...etc menus.Like theese menus i want to create my own menu in that i put some skill scripts.Plz let me know any help on this.I am using virtuoso 5.1 version.

  • Cancel
Parents
  • SarathKumarG
    SarathKumarG over 13 years ago

    Thanks Andrew,

                           I got below code in this forum.When i executing this code it shows error hiMenu@0xda630e8.

    Please help me on this issue.

     hiSetBindKey("Layout" "<Key>F10" "AmitAddMenu()")
    procedure(AmitAddMenu()
      let( (item1 item2)
        ;; create a couple of menu items
        item1 = hiCreateMenuItem( ?name 'item1 ?itemText "My First Item"
                  ?callback "AmitFunctionOne()"
                )
        item2 = hiCreateMenuItem( ?name 'item2 ?itemText "My Second Item"
                  ?callback "AmitFunctionTwo()"
                )
        ;; create a menu that includes the menu items and return a list of the
        ;; pulldown menus
        list(hiCreatePulldownMenu('AmitMenu "Amit Menu" list(item1 item2)))
      );let
    ); procedure
    ;; create a userMenuTrigger trigger that automatically adds the menu
    deRegUserTriggers("maskLayout" nil 'AmitAddMenu)

    Thank You.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • SarathKumarG
    SarathKumarG over 13 years ago

    Thanks Andrew,

                           I got below code in this forum.When i executing this code it shows error hiMenu@0xda630e8.

    Please help me on this issue.

     hiSetBindKey("Layout" "<Key>F10" "AmitAddMenu()")
    procedure(AmitAddMenu()
      let( (item1 item2)
        ;; create a couple of menu items
        item1 = hiCreateMenuItem( ?name 'item1 ?itemText "My First Item"
                  ?callback "AmitFunctionOne()"
                )
        item2 = hiCreateMenuItem( ?name 'item2 ?itemText "My Second Item"
                  ?callback "AmitFunctionTwo()"
                )
        ;; create a menu that includes the menu items and return a list of the
        ;; pulldown menus
        list(hiCreatePulldownMenu('AmitMenu "Amit Menu" list(item1 item2)))
      );let
    ); procedure
    ;; create a userMenuTrigger trigger that automatically adds the menu
    deRegUserTriggers("maskLayout" nil 'AmitAddMenu)

    Thank You.

    • 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