It looks like you're new here. If you want to get involved, click one of these buttons!
I am writing a python routine to read all the layer/purpose pair data for layers used in a layout, then cross reference it to the layers loaded from the lyp file. I have the first part complete in I can read the existing layer information and store the layer/purpose pairs in a structure, but I have not yet figured out how to access the loaded layer data. I thought it would be in the layout.technology data but don't see it there. Can someone point me to where it is located? Thanks!
Comments
Hi, David!
See
LayoutView.begin_layers
orLayoutView.each_layer
(https://www.klayout.de/doc-qt5/code/class_LayoutView.html).See example in https://klayout.de/forum/discussion/2383/how-to-set-a-layer-to-active.
Hello @DavidRLindley and @EugeneZelenko,
Thanks for your inspiring post. And the comments regarding
LayoutView.each_layer
.Since it looked helpful if I had it, I implemented the feature in a simple command line tool.
I hope my understanding was OK.
Usage
Run-1
Run-2 (with -c)
Run-3
Run-4 (for GDS2 with -c)
Kazzz-S