It looks like you're new here. If you want to get involved, click one of these buttons!
I follow such steps: Edit -> Layer -> Merge
Then I can merge layers.
However, I want to automate this process by using Macro Development. I'd like to know which class or procudure I should use.
Comments
Hello,
You can do that easily in the DRC environment (Macro Development > DRC):
https://www.klayout.de/doc-qt5/manual/drc_basic.html
https://www.klayout.de/doc-qt5/about/drc_ref_layer.html#h2-1534
layer.merge([overlap_count])
Cheers,
Tomas
@tomas2004 Thanks for the answer
I agree, but like to add you need to write it too ... so the above example equals to the DRC one-liner:
("merge" as a method will merge a copy of the layer, not the layer in the database).
Matthias
@Matthias Thank you soooo much!
@tomas2004 Thanks!!! It helps a lot.