Re: skill for creating slot in a existing polygon/wide metal
by Riad KACED <riad.kaced@[EMAIL PROTECTED]
>
Apr 17, 2008 at 04:49 PM
Hi Mengay,
Welcome to skill ;-)
The best thing for a beginner is to put hands on and sink your head
into the Cadence Do***entation. I think it is worth having a glance
at :
1. The Skill User Guide: $CDSHOME/doc/sklangref/sklangref.pdf
2. The Skill reference Manual: $CDSHOME/doc/sklanguser/sklanguser.pdf
3. The User interface Manual: $CDSHOME/doc/skuiref/skuiref.pdf
4. Custom Layout SKILL Functions Reference: $CDSHOME/doc/sklayoutref/
sklayoutref.pdf
The main function that helps in cutting shapes is "leChopShape" or
"leHiChop" in interactive mode (Doc 4). Do note that "le" prefixed
skill ****nctions could not be used in a pcell code. That's it !!
So I would advice to : Open your cellView, select your shapes, do the
calculation to determine the length/area and stuff ... and then call
leChopShape. Something like :
cv = dbOpenCellViewByType("libName" "cellName" "layout" nil "a" )
when(cv
foreach( shape cv~>shapes
; Do whatever you want to do
leChopShape(
d_shapeId
l_points
g_closed
[ g_remove ]
[ x_sides ]
)
; Do whatever you want to do
)
)
Give a look to this :
http://groups.google.com/group/comp.cad.cadence/browse_thread/thread/8b11076db3fb7910/
For your pullDown Menu, look at doc 3. Loads of examples are given
there !! : This is one of them
;;; Creating a new window to be used as the current window
hiOpenWindow()
;;; creating the "Raise Current Window" menu item
trRaiseCurrentWindow = hiCreateMenuItem(
?name 'trRaiseCurrentWindow
?itemText "Raise Current Window"
?callback "hiRaiseWindow( hiGetCurrentWindow() )"
)
;;; creating the Navigation pulldown menu
hiCreatePulldownMenu(
'trPulldownMenu ;;; menu handle
"Navigation" ;;; menu title
list( trRaiseCurrentWindow)
"" ;;; empty help string
) ; hiCreatePulldownMenu
;;; inserting the pulldown menu in the CIW
hiInsertBannerMenu(
window( 1 )
trPulldownMenu
0
)
Enjoy !!
Riad.