I have been looking for a Skill script which corrects off-grid edges of a donut shape in Cadence(IC6) Layout editor. I have found this script but it says it is not for donut. https://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:SearchTroubleshooting;solutionNumber=1800103.
What I need to do is that I need to draw a donut for real tape but it is off-grid so I need a script for grid correction. Actually, I don't know which way is better: drawing donut in layout and putting edge of it on grid with a script or drawing on-grid donut with Skill script from the beginning. I prefer the first one since in addition to donut I may have other off-grid shapes which need to be corrected.
I will appreciate if you can provide the Skill script for this purpose.
A donut cannot have its edges off grid, because they are circular - so there is no "point" on the edge (inner or outer) to be on or off grid.
However, since the Stream format doesn't support donuts (if my memory is correct), It will automatically convert it to a polygon at stream out time. Then you'll have a multi-sided polygon with lots of vertices, which may well be off grid.
In order to control this, you could use the convert to polygon command in the layout editor (under the Edit menu somewhere) to convert it to a polygon yourself, and then run the code to put the polygon vertices on grid.