It looks like you're new here. If you want to get involved, click one of these buttons!
I'm going to extract some specify sub-cells from a gds and collect them into a new gds, and I always use pure GUI to complete this kind job.
I would wanna know how can I finish this job in a pymacro field? (I've tried to look for any discussion about it, but failed...)
For example, there is an existing gds (Main.gds) whose top-cell is 'TOP' with 3 sub-cells named 'sub_cell1', 'sub_cell2' and 'sub_cell3'.
I would only want to collect 'sub_cell1' and 'sub_cell3' and relocate these cells from original point with x-step 0.5 um, and then save them into a new gds(New.gds). (It would better if these sub-cells are still under 'TOP' hierarchy)
How can I get this work with a pymacro?
(My klayout version is 0.25)
Thank you so much!