It looks like you're new here. If you want to get involved, click one of these buttons!
Hi, I want to merge the layer shapes and delete the original ones in the subcell over python scripting. Could you please help me with this?
The script is in the following, but it doesn't work:
`ly0.read(layoutFilePath + 'test.gds')
merge_layers = [ly0.layer(51, 4), ly0.layer(51, 5), ly0.layer(88, 0)]
merge_cells = 
for i in range(ly0.cells()):
merge_cell = ly0.cell('Waveguide' + str(i))
if merge_cell != None:
for idx, merge_layer in enumerate(merge_layers):
for merge_cell in merge_cells:
region = Region.new(merge_cell.begin_shapes_rec(merge_layer)).merge()
ly0.write(layoutFilePath + 'test.gds')`