Home > Community > Forums > Custom IC SKILL > How to raise the schematic window by SKILL ?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to raise the schematic window by SKILL ?  

Last post Wed, Jan 13 2010 9:18 PM by skillUser. 5 replies.
Started by marbs 12 Jan 2010 02:52 PM. Topic has 5 replies and 2095 views
Page 1 of 1 (6 items)
Sort Posts:
  • Tue, Jan 12 2010 2:52 PM

    • marbs
    • Top 150 Contributor
    • Joined on Mon, Jun 15 2009
    • Posts 57
    • Points 720
    How to raise the schematic window by SKILL ? Reply

     Hi All,

    How can I raise the schematic window if it is iconified or if 

    the schematic window is placed behind other windows, by using SKILL?

    Because, during layout designing, it is difficult to find the schematic window,

    if many windows exist.  I'm using icfb version 5.10.41.500.5.109 . 

    Any help are appreciated. 

     

    Regards, 

    Marbs 

     

     

     

     

     

     

     

     

     

     

    • Post Points: 35
  • Tue, Jan 12 2010 2:56 PM

    Re: How to raise the schematic window by SKILL ? Reply

    Try reading the Cadence User Interface SKILL Functions Reference manual, in <ICinstDir>/doc/skuiref/skuiref.pdf (or via cdsdoc). Or search in cdsFinder for likely functions.

    You need to use hiRaiseWindow() or hiDeiconifyWindow()  . You may also want to use hiGetWindowIconifyState() to find out whether it is "iconized" (minimized) or not.

    Regards,

    Andrew.

    • Post Points: 5
  • Tue, Jan 12 2010 8:05 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,535
    • Points 14,940
    Re: How to raise the schematic window by SKILL ? Reply

    In addition to Andrew's post, you can use something like the following code to help you to find and then iterate over the schematic windows:

    
      setof(win hiGetWindowList() 
        rexMatchp("chematic" hiGetAppType(win))
      )
      => returns a list of window id's where the window is a schematic application
    

    You can then iterate over this list (e.g. with foreach) and decide whether to raise or de-iconify the window.

    Hopefully this additional information is helpful.

    Regards,

    Lawrence.

    • Post Points: 20
  • Wed, Jan 13 2010 4:07 PM

    • marbs
    • Top 150 Contributor
    • Joined on Mon, Jun 15 2009
    • Posts 57
    • Points 720
    Re: How to raise the schematic window by SKILL ? Reply

    Hello Sir,

    Thank you all for replying, I think I solved my problem by following your

    advice. My solution is as follows :

    hiSetBindkey("Command Interpreter" "Ctrl<Key>s" "deIconify_schematic() ")

    procedudre (deIconify_schematic()

    cv=geGetEditCellView()

    hiDeiconifyWindow(geGetCellViewWindow(cv))

    hiRaiseWindow(geGetCellViewWindow(cv))

    )

     

    It is working, I will try tomorrow about  Lawrence suggestion.

     

    Thank you very much,

    Marbs 

     

     

     

     

     

    • Post Points: 35
  • Wed, Jan 13 2010 4:15 PM

    Re: How to raise the schematic window by SKILL ? Reply

    Hi Marbs,

    No point in using geGetEditCellView() and then using geGetCellViewWindow() to get the window id. Simpler to just directly use hiGetCurrentWindow() - e.g. hiRaiseWindow(hiGetCurrentWindow())

    Regards,

    Andrew.

    • Post Points: 5
  • Wed, Jan 13 2010 9:18 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,535
    • Points 14,940
    Re: How to raise the schematic window by SKILL ? Reply

    Hi Marbs,

    I think that this solution will only work if the schematic cellview happened to be the current cellview window. Since there can be only one current cellview window, I would expect it to be another window, other than the hidden or iconified schematic that you are trying to pop up.  In other words, if the schematic window is "buried" or iconified and you are working with layout or other graphical windows, one of these will likely be current which would render the above code functionally incorrect (it won't specifically raise the schematic, just whichever window is current).

    Good luck looking at my suggestion, I think it will better solve the problem.

    Regards,

    Lawrence.

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by marbs at 12 Jan 2010 02:52 PM. Topic has 5 replies.