Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Cadence Skill question RE: Analog Design Environment

Status
Not open for further replies.

turdturtle

Newbie level 3
Newbie level 3
Joined
Aug 12, 2010
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,303
Does anyone know how to add a Skill-created GUI component (ie pulldown menu) to the menu of ADE ?

Something like:

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

      hiInsertBannerMenu(hiGetCurrentWindow() 'myMenu 99)


but instead of "hiGetCurrentWindow()", how do you specify you want ADE ?

I'm loading this in .cdsinit so that every new ADE window will have my custom menu.


Thanks!
 

I think you've got the wrong section...

Anyway, put your command in a procedure,
e.g.:

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)

Check more in the documentation on how to use this SKILL command.

A good place I know to post SKILL questions is at:
https://groups.google.com/group/comp.cad.cadence

Best regards
 

    turdturtle

    Points: 2
    Helpful Answer Positive Rating
Thanks very much -- it was very helpful.

I have one final bug (or mistake etc):

It now says (after I load the skill code with my ADE session up and going):

*Error* User post install trigger is not a symbol



Do you know how to solve this?



EDIT: Shoot shoot, stupid typo. Thanks alot!!! -- it worked just fine.


In the future, I'll be trying to add custom menu's to stuff other than ADE -- do you know how to figure out the viewtype name of windows ? Ie how do you figure out that the ADE window is analogArtist-schematic ?


Thanks!
 

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!
 

hiCreateAppForm( blah blah ?callback 'myCallBackFunc )

It's easier to use:

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

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

Best regards.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top