Hi, Matthias,
I want to do following actions on a cell
1. load the cell in a new layout
2. rotate the cell 90 degree
3. flatten the rotated cell
4. make cell of the flattened one
5. save it as a new file
Because I want to do the above action on hundreds of cells, could you please teach me how to meke it works with batch ruby script?
Regards,
Canny
Comments
Hi Canny,
here's a piece of code that reads a layout (here: "x.gds"), creates a new top cell (here: "ROTATED") which rotates the original cell by 90 degree, flattens that cell and writes the output (here: as "x_rotated.gds")
Please note that this script does not work as expected when the input contains more than a single top cell:
Regards,
Matthias
Thank you, klayout ruby script is always helpful for layout handling.
Regards,
Canny