I've tried making the origin of the rectangle stretchable by giving 't' to ?moveOrigin in the function rodAssignHandleToParameter but I failed. I succeeded in creating the rectangle and making it stretchable but I can not move the origin of the rectangle. Can anyone tell me why?
Here is my code:
list(ddGetObj( "test_lib") "test_pcell" "layout")
?handleName list("upperCenter" "lowerCenter")
Other than a few typos in the code above (I assume you can't have cut-and-paste it into the forum, because it doesn't work as-is), it works OK. If you have ?moveOrigin nil, then stretching the bottom stretch handle causes the top edge to move up or down, rather than the bottom edge moving up or down. If it is t, then the bottom edge correctly moves (in essence the origin of the shape changes.
Perhaps you've misunderstood what it's supposed to do? Try setting ?moveOrigin nil and observe the difference in behaviour...
I'm sorry that I've just published wrong codes. The code above is not the one with problem and I have already solved the problem. Thanks for your reply.