Hi Matthias,
Thanks for the great view/editor. I'd like to find the coordinates of the shapes that are touching/overlapping a given box on a certain layer, say, (0,0, 10, 10), how can I start with? The following script seems to provide some hints but I'm not yet familiar with Ruby. Any suggestions?
http://www.klayout.de/resources/list_layers.rbm
Comments
Hi,
the list_layers script is actually a good starting point. You can modify the script to better suit your requirements.
First you can remove lines 52 to 70 because in that script, a ruler is used to define the search region. If you don't need a graphical way to define the region, you can skip that part.
The second thing you need to adjust is the search loop. In the original that is line 120 to 157. That will probably look like this:
Finally, the output happens in lines 159 to 187 of the original. Probably you'll need a different kind of output. The example in that script shows how to build a HTML document and display it in a small browser window.
Hopefully that helps somewhat.
Best regards,
Matthias
Thanks for the suggestion. It should work for me. Looks like I'll have to learn Ruby first. XD