It looks like you're new here. If you want to get involved, click one of these buttons!
I've been trying to find a good way to calculate the bounding boxes for various layouts. This is the simplest and works well for small layouts:
allLayers = input("1-999/0-5")
puts "Bounding box of this layout is (x_ll,y_ll,x_ur,y_ur)"
But this doesn't work for large layouts (it takes forever and doesn't indicate whether progress is being made)
One option I tried and haven't really gotten to work is to extract the layers in Python like this (after I used pip to install klayout):
from klayout import db
layout = db.Layout()
for ly_id in layout.layer_indices():
lyList[ly_id] = layout.get_info(ly_id).to_s().split('/')
The issue here is that I don't know how to feed the layer list into BBOX.
This way would be preferential for me since I would like to do some other DRC manipulations on a layer-by-layer basis and this would get me halfway there.
Any help is appreciated!