Hi,I need a pcell with a parameterized polygon in it.Are there any pcell - safe functions that can be used to create an orthogonal polygon? Thank you!mims
Not sure I really understand. You can use dbCreatePolygon in a pcell with no trouble - and the points can be derived from whatever parameters you define for the pcell.Regards,Andrew.
I am using rodCreatePolygon which can produce a non-orthogonal polygon, just as dbCreatePolygon. The pcell parameter that I use to define the polygon is _coords. I add an additional point to it in case that the shape would become non-orthogonal. The drawn polygon is orthogonal. Afterwords I define stretch handles on it (with a user function which alters the corresponding x or y coordinates of the two points affected by the stretch). In the case of an additional point added the results of the stretch were unexpected. In the user stretch function I printed the properties of the instance and the value of the _coords was the original value that is supllied to the pcell before the check for orthogonality. I don't know if this makes any sense. On draw the pcell uses the correct value of _coords and on stretch it uses the original unmodified value supplied by the user during the pcell instantiation. I was wondering if I am missing an obvious solution.Regards,mims
Perhaps you could post the code? That would make it much easier to figure out what's wrong. From what you've described, there are lots of opportunities to make a mistake...Regards,Andrew.
Here is the code... It did get messy and more complex that it is needed.. The other way that I was thinking of to implement stretching was to create the cell dynamically, but this seemed simpler.Regards,mims