Merge gds files into one parent cell

edited September 2016 in Ruby Scripting
Hi,

I am very new to klayout. I want to merge 10's of gds files into one gds file, each separated in y-axis by 50um. My dbu is 0.001

I followed the previous discussions on this topic.
For example
http://klayout.de/forum/comments.php?DiscussionID=146

The above script, merges GDS files, but they are not kept in one parent cell.

Then

http://klayout.de/forum/comments.php?DiscussionID=814

Has similar functionality and easy to understand, also solves the problem of parent cell, but I was not able to separate individual cells in y axis. Currently I am using this script and manually editing the y-coordinates of each cell.

Please let me know, how can I modify either of the above codes.

Many thanks in advance.

Comments

  • edited September 2016

    Hi,

    simple. This thing in discussion 814:

    pya.Point(0,0)
    

    defines the target coordinate of the cell (x, y). So just provide a counter and use a coordinate like "pya.Point(0, counter*50000)". Please note that the coordinates are "database units".

    Please take the comment about cell name conflicts in discussion 814 seriously - if your layouts share the same cell names, these cells get joined!

    Matthias

Sign In or Register to comment.