It looks like you're new here. If you want to get involved, click one of these buttons!
Hi, I am new in Klayout world. Trying to achieve something wiht a layout having cells and subcells in the heirarchy. I want to copy a layer (layer1) and put that into a new layer (layer2). I tried the following code. This runs and shows no error but not copying anything..
import pya layout = pya.Application.instance().main_window().current_view().active_cellview().layout() src_lay=1 des_lay=2 for c in layout.each_cell(): print(c.name) topcell=layout.cell(c.name) topcell.copy(src_lay,des_lay)