• 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. Installing a menu using userMenuTrigger

Stats

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

Installing a menu using userMenuTrigger

Shico90
Shico90 over 4 years ago

Hello, 
I'm trying to add a menu to my schematic window using userMenuTrigger instead of post install trigger as suggested many times in these forums. The problem is every time I open the application where the menu is supposed to be installed, I get 
*Error* append: argument #1 should be a list or another acceptable type - t

That's the error coming from cds.log

\i ddsServOpen("spacetime" "test" "schematic" "read" nil nil)
\e *Error* append: argument #1 should be a list or another acceptable type - t

and that's how I register the menu in schematic

deRegUserTriggers("schematic" nil 'MyMenu_sch)

Not sure what does the error mean or why it happens. I have to say that this problem doesn't happen when I register the menu using postinstalltrigger

Thanks for your help.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    The user menu trigger should not return t and it should also not add the pulldown menus into window itself. It should return a list of pulldown menus and then the "Design Editor" system will take care of adding them into the set of pulldown menus for that window.

    So that's what's wrong - your code is doing the wrong thing.

    Note, you should not use the user postInstall trigger to add menus either, as things can misbehave if you do that (you can find that the triggers fight with each other if there is more than one post install trigger).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Shico90
    Shico90 over 4 years ago in reply to Andrew Beckett

    Thanks Andrew !

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RK56
    RK56 over 4 years ago in reply to Andrew Beckett
    Andrew Beckett said:
    "Design Editor" system will take care of adding them into the set of pulldown menus for that window

    Is that you are referring to user menu files? I mean instead of using hiCreateMenu* functions

    -Thanks

    Ramakrishnan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to RK56
    RK56 said:
    Is that you are referring to user menu files? I mean instead of using hiCreateMenu* functions

    No. I was talking about what happens with userMenuTriggers - you return a list of pulldown menus, and the Design Editor takes care of inserting them into the banner menus for the window (you don't need to nor should do this within the trigger).

    Andrew

    • 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