I want to go back to the original question-
if it is a particular shape of a layer (not circle necessarily), can instances (after explode) be deleted which are outside the shape without flattening it.
Hi Matthias,
Thank you so much. In the meantime, I figured out how to do it with python scripting -
import pyalayout = pya.Application.instance().main_window().current_view().active_cellview().layout()topcell=layout.cell("Main")dbu=layou…
I tried this - it does not give any error but also do not draw anything
for ss in topcell.each_shape(layer_index_source):
a=ss.is_box()
aa=ss.polygon
…
I tried this and now it wokrs.. i wonder what is the difference -
import pyalayout = pya.Application.instance().main_window().current_view().active_cellview().layout() src_layer=1des_layer=2for c in layout.each_cell(): print(c.name) src_layer…
If it is needed to put the circle with a specified center, then it can be done like this with tagger5896's code-
circle_center_x=200circle_center_y=220circle = []for i in range(0, n): path =circle_center_x+ r * math.cos(i * da),circle_center_y+ r…
Hi,
I am new in Klayout and Klayout scripting world. I want to learn basic boolean operation in the layout and came accros this post. Thanks, this looks perfect. Only I tried this code to do OR operation of layer1 and layer2 shapes already exists i…