• 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. Can't add a custom menu to the context sensitive menu in...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 144
  • Views 639
  • 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

Can't add a custom menu to the context sensitive menu in the schematic view

YZ202408211627
YZ202408211627 over 1 year ago

I'm using the following code to add a custom menu in both the navigator and schematic window when I select an object

;; Register action of sub menus
mbRegisterAction("schematic" "Iteam 1" "Iteam 1" "println(\"Item 1\")" "t")
mbRegisterAction("schematic" "Iteam 2" "Iteam 2" "println(\"Item 2\")" "t")

;; Register a hierarchical or slider menu
mbRegisterHierMenu("schematic" "Custom menu" "Custom menu" "t")

;; Register the slider menu context sensitivity
mbSetContextData("schematic" "Custom menu" "Any" "Navigator" "Common")

;; Register the submenus context sensitivity, notice that parent is hierMenu
mbSetContextData("schematic" "Iteam 1" "Any" "Navigator Canvas" "Common" ?parent "Custom menu")
mbSetContextData("schematic" "Iteam 2" "Any" "Navigator Canvas" "Common" ?parent "Custom menu")

This code only shows the menu in the navigator 

  • Cancel
  • henker
    henker over 1 year ago

    This is a known limitation, see:

    support.cadence.com/.../ArticleAttachmentPortal
    There is also CCR 1090918.

    A workaround is given at the bottom of the article, which is to inserts the custom menu items directly into each matching schematic popup menu. The possible arguments for schGetPopUpMenu to get the specific popup menus are:
    "wire" "instance" "instPin" "label" "marker" "schNone" "schPin" "schMultiple" "schUnknown" "shapes" "symPin" "symNone" "symUnknown" "symMultiple" "schStandard" "symStandard" "indexDefault" "indexInstPin" "indexPin" "indexSheet" "border"

    • 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