Cadence SKILL GUI Modification to ADE (Analog Design Environment)

Discussion in 'Cadence' started by John G, Aug 13, 2010.

  1. John G

    John G Guest

    Hi,

    I want to add a custom menu pulldown to ADE, loading my Skill code
    in .cdsinit, and for every ADE instance I call, for the menu to be
    auto-loaded.

    Here's my code so far with assistance from others:

    procedure( UserSchMenu()

    hiCreatePulldownMenu( 'myMenu
    "myMenu"
    list( myItem )
    ) ;hiCreatePulldownMenu

    hiInsertBannerMenu(hiGetCurrentWindow() 'myMenu 99)
    ) ;proc

    Then, put a trigger for the procedure to load,
    e.g.:

    deRegUserTriggers("analogArtist-schematic" nil nil 'UserSchMenu)


    My problem is that with the previous statement, it causes this error:

    *Error* User post install trigger is not a symbol.


    Can someone please give me some pointers?


    Thanks!!!!!!
     
    John G, Aug 13, 2010
    #1
  2. John G

    John G Guest

    Oops I found my error -- just a stupid typo.

    However, does someone know how to obtain the viewtype name of any
    arbitrary ICFB window? Ie how to find out that ADE viewtype is
    ""analogArtist-schematic" ??? (someone told me this but in the
    future I will be modding other windows as well)

    Or -- is there a list of viewtypes somewhere in some PDF or webpage
    file or help file in ICFB ?


    Thanks!
     
    John G, Aug 13, 2010
    #2
  3. John G

    John G Guest

    Ok, another question: How to handle passing parameters to callbacks?

    ie :

    hiCreateAppForm( blah blah ?callback 'myCallBackFunc )


    procedure (myCallBackFunc( a b c) ) ; proc


    How to pass params to callback from "hiCreateAppForm" thing?


    Thanks!
     
    John G, Aug 14, 2010
    #3
  4. John G

    I-F AB Guest

    It's easier to use:

    hiCreateAppForm( blah blah ?callback "myCallBackFunc( param1 param2)")

    Save the commands in a file & use load("......") in .cdsinit to load
    this menu file.

    Best regards.
    I-FAB
     
    I-F AB, Aug 16, 2010
    #4
  5. John G

    Loz Davis Guest

    deGetViewType(hiGetCurrentWindow())

    or you can use the window(<number>) function to get the windowID of an
    arbitrary window

    deGetAllViewTypes() will return a list of all the registered
    viewtypes.
     
    Loz Davis, Aug 27, 2010
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.