A
Arnold
Guest
Hi,
I write this code to draw a bus. Now I want to make it stretchable,
but I don´t know exact how to do this. I reach to strech the width but
not that I can change/stretch the coords for the path.
Can someone help me please ?
pcDefinePCell(list(ddGetObj("work_ae") "bus" "layout")
(
(w float 1.6)
(layer string "metal1")
(coords ILList '((0.0 0.0) (0.0 1.0)) "path" "diagonal")
(busnr int 2)
(layerSpace float 0.7)
)
let((bus busPath)
bus=cdr(list(() list(
?layer layer
?justification "right"
?sep layerSpace
?width w
)))
layerSpace=w+2*layerSpace
for(i 3 busnr
bus=append1(bus list(
?layer layer
?justification "right"
?sep layerSpace
?width w
)
)
layerSpace=layerSpace+w+0.7
)
busPath=rodCreatePath(
?name "bus"
?layer layer
?pts coords
?width w
?justification "center"
?offsetSubPath bus
);end rodPath
rodAssignHandleToParameter(
??? ??? ??? ??? ??? ???
);end rodAssing
);end let
);end pcDefinePCell
CU and THX
Arnold
I write this code to draw a bus. Now I want to make it stretchable,
but I don´t know exact how to do this. I reach to strech the width but
not that I can change/stretch the coords for the path.
Can someone help me please ?
pcDefinePCell(list(ddGetObj("work_ae") "bus" "layout")
(
(w float 1.6)
(layer string "metal1")
(coords ILList '((0.0 0.0) (0.0 1.0)) "path" "diagonal")
(busnr int 2)
(layerSpace float 0.7)
)
let((bus busPath)
bus=cdr(list(() list(
?layer layer
?justification "right"
?sep layerSpace
?width w
)))
layerSpace=w+2*layerSpace
for(i 3 busnr
bus=append1(bus list(
?layer layer
?justification "right"
?sep layerSpace
?width w
)
)
layerSpace=layerSpace+w+0.7
)
busPath=rodCreatePath(
?name "bus"
?layer layer
?pts coords
?width w
?justification "center"
?offsetSubPath bus
);end rodPath
rodAssignHandleToParameter(
??? ??? ??? ??? ??? ???
);end rodAssing
);end let
);end pcDefinePCell
CU and THX
Arnold