It looks like you're new here. If you want to get involved, click one of these buttons!
Hello, sirs
I am new to python script, and trying to create a layout with a rectangle box: 30 x 50 um ,
then make duplicates by pitch 80 um & rotating clockwise 0.5 degree till degree 60. ( It will include 121 rectangle rectangle boxes.. )
but, I am not familiar with Ruby code explanation in Klayout , will appreciate if can share some idea, thanks.
import pya
layout = pya.Layout()
Top = layout.create_cell("Top")
metal = layout.layer(1, 0)
width = 30 * 1000
height = 50 * 1000
pitch = 80 * 1000
leg0 = Top.shapes(metal).insert( pya.Box(0, 0, width, height) )
leg1...
leg2...
leg3...
...
..
.
leg121
layout.write("test.gds")
Comments
This is Python
Try this:
Matthias
Hello, Matthias
Thanks for sharing, This code enlightened someone like me as a beginner.
Klayout is awesome.