Questions about skill

M

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
 
On Dec 9, 11:45 pm, manell15 <manel.lan...@gmail.com> wrote:
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?
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.
 
Hi Manell,

Few, quick comments are enclosed.

On Dec 10, 7:45 am, manell15 <manel.lan...@gmail.com> wrote:
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?
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
)
)
;

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?
Yes you can, why not ? Well, I think I didn't get the question :-(

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)
A='(8 2 7 9 1)
sort(A 'lessp) ==> (1 2 7 8 9)

Regards,
Riad.
 

Welcome to EDABoard.com

Sponsor

Back
Top