Easy library/cell/view select form invocable from skill?

Discussion in 'Cadence' started by Poojan Wagh, Mar 26, 2007.

  1. Poojan Wagh

    Poojan Wagh Guest

    I'm trying to write some custom skill code that needs a user to select
    a library, cell name, and view name. (I'm trying to create a modified
    copy of an original cell-view and need a way for the user to enter the
    new view name, which may not be in the same library or cell).

    Is there an easy way to invoke a browser to do this? Basically, I want
    to bring up a form that has all the libraries listed, all the cells
    within the library listed, and all the views within the cell.

    I'm guessing there must be a real easy way to invoke this form.
    However, I can't seem to find it in the docs nor in sourcelink.
    Creating a custom form seems like an overkill, and I can't seem to
    find an entry for a "library" item anyway.

    Also, I'm interested in the equivalent for just selecting a library/
    view and just selecting a library.
     
    Poojan Wagh, Mar 26, 2007
    #1
  2. Poojan Wagh

    Andy Guest

    You can use "ddsSyncWithForm() to do.
    Ex :
    libName = hiCreateStringField(
    ?name 'libName
    ?prompt "Select library"
    )
    cellName = hiCreateStringField(
    ?name 'cellName
    ?prompt "Select cellName"
    )
    browser = hiCreateButton(
    ?name 'browser
    ?buttonText "Browser"
    ?callback "ddsSyncWithForm(your_form_name
    'browser
    'libName
    'cellName
    )"
    )

    Above will invoke the library manager to select the libName and
    cellName, then it will put into the field "libName" and "cellName".
    Of course, you also can type in "libName" and "cellName" yourself.
     
    Andy, Mar 27, 2007
    #2
  3. Poojan Wagh

    Poojan Wagh Guest

    Thanks, Andy. Will this work in IC 5.1?
     
    Poojan Wagh, Mar 27, 2007
    #3
  4. Poojan Wagh

    Andy Guest

    Yes. the code work for IC5141 and IC61 both.
     
    Andy, Mar 27, 2007
    #4
  5. Poojan Wagh

    Poojan Wagh Guest

    Thanks very much, Andy. Worked liked a charm.
     
    Poojan Wagh, Mar 27, 2007
    #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.