How to use skill command to close a schematic window?

Discussion in 'Cadence' started by lee.amanda01, Dec 18, 2008.

  1. lee.amanda01

    lee.amanda01 Guest

    Hi
    I want to ask a simple question:
    How to use skill command to close a schematic window?

    I did some search but can not find a proper command.
    Can anyone help? thank you.


    --la
     
    lee.amanda01, Dec 18, 2008
    #1
  2. lee.amanda01

    Joel Guest

    hiCloseWindow(window_id) should do it.

    The key is to find the right window_id and that depends on what you
    are trying to do. For example, if the window you want to close is
    always the current window:

    hiCloseWindow(hiGetCurrentWindow())

    or if the variable 'cv' refers to the cell view currently displayed in
    the window you wish to close:

    hiCloseWindow(geGetCellViewWindow(cv))

    I hope that helps.

    Joel
     
    Joel, Dec 18, 2008
    #2
  3. lee.amanda01

    layoutDesign Guest

    If you use dbOpenCellViewByType and assign the return database
    object id to a variable, such as

    myCell = dbOpenCellViewByType(libName cellName viewName)

    then you can close it by

    dbClose(myCell)
     
    layoutDesign, Dec 19, 2008
    #3
  4. layoutDesign wrote, on 12/19/08 02:51:
    Although that will only close the window if there is nothing else referencing
    the cellView - effectively the system keeps track of the number of opens vs
    number of closes.

    So hiCloseWindow() is the right way to close a window.

    Only if the cellView gets purged from memory (num closes == num opens, or
    dbPurge is used) will any containing window get closed too.

    Regards,

    Andrew.
     
    Andrew Beckett, Dec 20, 2008
    #4
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.