i changed the code i get this
procedure(CCScreateBoxAndLabels(cv w l "dnn")
let( (rectRodObj)
;; create a rectangle on metal1 with x & y dimensions set by w & l
rectRodObj = rodCreateRect(
?name "myRect1"
?cvId cv
?layer list("ALPHA" "drawing")
?width w
?length l
?origin list(0 0)
)
rodAssignHandleToParameter(
?parameter "w"
?rodObj rectRodObj
?handleName "centerRight"
?stretchDir "X"
?displayName "width"
?displayExpression "w"
?updateIncrement 0.1
); rodAssignHandleToParameter
); let
); procedure CCScreateBoxAndLabels
pcDefinePCell(
list(ddGetObj("adhillib") "encapRodPcell" "layout")
(
(w 0.2)
(l 0.4)
)
let( ((cv pcCellView))
CCScreateBoxAndLabels(cv w l)
cols = w/0.2
paramObj = dbCreateParamInstByMasterName(cv "adhillib" "gp2_path" "layout" "inst1"
list(0 0)
"R0"
1
list(
list("rows" "float" 1.0)
list("cols" "float" cols)
list("finger_width" "float" 0.1))
)
); let
)
/*
the code compiles without errors, but the handle doesn't get assigned
Adhil