Questions about skill

Discussion in 'Cadence' started by manell15, Dec 10, 2008.

  1. manell15

    manell15 Guest

    Hello
    I am writing a script (skill) which allow to draw IO frames from a
    list of cells(dbCreate Inst).I have some problems:
    1. When the user chooses to create a cell that already exists in the
    library, I have to write a warning message to ask the user if he want
    to overwrite the cell. So I need to have the answer of the user, how
    can I do it? Who can I read the answer from the CIW?
    2. The number of cells that I use to draw the frame is very important
    so can I group some cells in the same cell to reduce there number. For
    example I have 7 different cells of routing metals, for each of them I
    use dbCreateInst, can I group all this cells in only one?
    3. How can I order the element of a list from a bigger to the smaller?
    A=¡¦(8 2 7 9 1) „»? A=¡¦(1 2 7 8 9)
    Could you please help me?
    Thanks
     
    manell15, Dec 10, 2008
    #1
  2. manell15

    layoutDesign Guest

    Try to get a sourcelink.cadence.com account, or find out where the pdf
    documents for your Cadence installation are find. In there there is a
    popup that you can create, and then ask the user if it is okay or
    cancel. In the pdf file that describes those popup menus is an
    excellent example, and if you play around with it, you should be able
    to use that maybe.
     
    layoutDesign, Dec 13, 2008
    #2
  3. manell15

    Riad KACED Guest

    Hi Manell,

    Few, quick comments are enclosed.

    Try the following as an example (execute rkPrintUserAnswer in the
    CIW):
    ;
    procedure( rkPrintUserAnswer()
    if( rkGetUserAnswer()
    printf("Yes, I do like this form\n")
    printf("No, this form is awful\n")
    )
    )
    procedure( rkGetUserAnswer()
    let((userAnswer)
    userAnswer= hiDisplayAppDBox(
    ?name 'rkGetUserAnswerForm
    ?dboxBanner "rkGetUserAnswer Form"
    ?dboxText sprintf(nil "Do you like this form")
    ?dialogType hicQuestionDialog
    ?buttonLayout 'YesNo
    )
    userAnswer
    )
    )
    ;
    Yes you can, why not ? Well, I think I didn't get the question :-(
    A='(8 2 7 9 1)
    sort(A 'lessp) ==> (1 2 7 8 9)

    Regards,
    Riad.
     
    Riad KACED, Dec 15, 2008
    #3
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.