Can somebody tell me how to rotate a box that I make by a certain angle? I have been looking through the documentation and I can't find anything. Thanks.
Shameless plug: Download The Red Toolbox, unzip it into your C:\Users\username\KLayout\macros folder (or equivalent on Linux), restart KLayout, select box, run The Red Toolbox menu > Selection > Rotate by angle (individually). Note that the result is a polygon (rotated boxes are not supported in GDS/OAS spec).
Comments
Shameless plug: Download The Red Toolbox, unzip it into your C:\Users\username\KLayout\macros folder (or equivalent on Linux), restart KLayout, select box, run The Red Toolbox menu > Selection > Rotate by angle (individually). Note that the result is a polygon (rotated boxes are not supported in GDS/OAS spec).
Look at lines 61-82 of that code
David
Hi Maximus (nice name, BTW),
do you mean by script or manually?
By script:
Manually: draw a box and rotate using "Edit/Selection/Rotate By Angle" or use David's toolbox as suggested
Matthias