You could find API reference on https://www.klayout.de/doc-qt4/code/index.html and good example (Ruby, but not too different from Python) on https://github.com/klayoutmatthias/tf_import/. Probably this discussion is most relevant to your task.
You could write Report database in XML format in your script and use Marker Browser in KLayout. See https://www.klayout.de/doc-qt4/manual/marker_browser.html, https://www.klayout.de/rdb_format.html.
testdata/sessions/test.lyrdb in master is example…
Thank you for hints, Matthias!
Problem is that I needed to create top-level menu and another problem that macro title contained special symbols ("(", "+", ",", ")") so their internal names were not obvious.
…
Hi, Matthias!
Thank you for help! It works!
By the word, it may be worth to do similar changes in https://github.com/klayoutmatthias/tf_import/, so imported data will be applied only to current cellview.
Eugene.
I found working solution for my problem:
app = pya.Application.instance()current_view = app.main_window().current_view()new_layers = []for layer in current_view.each_layer(): new_layer = pya.LayerPropertiesNode() new_layer = layer new_l…
@crizos: Thank you for help! I tried all your three suggestions, but they didn't work :-(
1. layer.name change works in Python (like print), but GUI was not updated;
2. Failed same way as you wrote;
3. names remained same in GUI but changed in layou…