skill open layout

Discussion in 'Cadence' started by Robin, Apr 30, 2010.

  1. Robin

    Robin Guest

    Hi all,

    I got a question I want to make a skill code that opens a layout view
    if it isn't open in a window yet. If its open already then focus it.
    But I can't get it working. Sorry I'm very new to skill.
    This is what I have:

    if(//Some function to check if the design is open//) then
    //put focus to window//
    else
    deOpenCellView("myLibrary" "cellname" "layout" "maskLayout" nil
    "a")
    );if

    So I'm missing some key ingredients. Can anybody help me or give ne a
    hint?

    Thanks very much
    Robin
     
    Robin, Apr 30, 2010
    #1
  2. Robin

    Marc Heise Guest

    Am 30.04.2010 11:40, schrieb Robin:
    Hi Robin,

    I don't have the time to complete your code, just some hints:

    ;get all open cellviews ("open" might also be in VM only)
    cells=dbGetOpenCellViews()

    ;search with a foreach/setof through the cells to find the
    ;cell with the desired name
    ;search in cell cells if cell~>cellName=="TEST"

    ;get the windowID for the open cellview( don't forget to check if
    ;this is !=nil)
    win=geGetCellViewWindow(cell)

    ;raise the window or open new
    hiRaiseWindow(win) or else ....


    Marc
     
    Marc Heise, Apr 30, 2010
    #2
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.