G
Guenther Sohler
Guest
I plan to create a simple Pcell with a Handle.
The User should be able to drag this handle and therefore automatically
change the Shape of the Pcell.
My Code looks like
pcDefinePCell(list(ddGetObj("GS_WORK") "rect" "layout")
(
(width float 1.0)
(height float 1.0)
)
rect=rodCreateRect(?name "rect" ?cvId pcCellView ?layer "poly" ?bBox list(0:0 width:height))
rodCreateHandle(?name "left" ?type "point" ?value 0:height/2 ?rodObj rect)
rodCreateHandle(?name "right" ?type "point" ?value width:height/2 ?rodObj rect)
rodAssignHandleToParameter( ?parameter "width" ?rodObj rect ?handleName list( "left" "right" ) ?displayName "width" ?stretchDir "x" )
t
)
but it does not work
is it wrong ?
Maybe I dont use the pcell in an incorrect way.
Is a special Cadence version needed ?
Can anybody give me detailled click instructions how to change a pcell
graphically using handles ?
The User should be able to drag this handle and therefore automatically
change the Shape of the Pcell.
My Code looks like
pcDefinePCell(list(ddGetObj("GS_WORK") "rect" "layout")
(
(width float 1.0)
(height float 1.0)
)
rect=rodCreateRect(?name "rect" ?cvId pcCellView ?layer "poly" ?bBox list(0:0 width:height))
rodCreateHandle(?name "left" ?type "point" ?value 0:height/2 ?rodObj rect)
rodCreateHandle(?name "right" ?type "point" ?value width:height/2 ?rodObj rect)
rodAssignHandleToParameter( ?parameter "width" ?rodObj rect ?handleName list( "left" "right" ) ?displayName "width" ?stretchDir "x" )
t
)
but it does not work
is it wrong ?
Maybe I dont use the pcell in an incorrect way.
Is a special Cadence version needed ?
Can anybody give me detailled click instructions how to change a pcell
graphically using handles ?