A stretch handle is nothing more than a graphical way to change a pcell parameter. If your pcell has a stretch handle, then there is a parameter that is changed when that stretch handle is stretched. Once you know the parameter name then you can use Skill code to change the parameter value as was described in the previous posts. Originally posted in cdnusers.org by dmay
If you don't know the name of the parameter, ask your pcell developers or CAD team. If you want to figure it out, first take a look at all of the pcell parameter values on your pcell with this code:
Select your pcell instance
In your CIW, type (css() is a command to get the car of the selected set):
In your Cadence window, stretch your stretch handle then repeat the previous step.
Note the parameter value that changed when you stretched the stretch handle.
You can now manipulate it in Skill with:
(where param is the name of the parameter and value is what you wish to set it to)