Hi @Matthias , here I tried to compile small example (actually two).
This one is raw PyQt5 based:
from PyQt5.QtCore import QAbstractTableModel, QModelIndex, Qt, QVariantfrom PyQt5.QtWidgets import QApplication, QMainWindow, QTableViewfrom dataclass…
@dbeaster in addition to code presented please check the docs about Cell object:
https://www.klayout.de/doc-qt5/code/class_Cell.html#method81
Despite that the example above is Ruby based, the Python version will be the same
* get layout object
* i…
Hi @EugeneZelenko, thanks for the comment. I am not sure that understand it completely, but it looks like you are referring to changing check state of particular item in your QTreeWidget, am I right?
The point is that this is widget based way and i…
@Matthias , you are right, that is what I am trying to do (take this single layout and start constructing the single palette top cell from of these cells) but don't know actually how. What is the proper way to create empty top level cell and move al…
@Matthias
thank you for this advice. I tried to load my layouts in this way, and indeed all top level cells are now have their subcells of the same names, also file size shrinked significantly. However, this does not give me palette of my cells sin…
@ejprinz thanks for the hint, I will try to dig it more. So far I tried to save to OASIS format with compression 10 and the size shrinked only slightly.
@Matthias , you were right about nested cells. In my generated from single drawings GDS I have …
Hi Matthias, thanks for the reply. I think you have got the point. Indeed, in the DXF palette I have many shared blocks. But how this works for GDS? Do you mean that my nested cells are copied but not shared, right? Is there way to do something afte…
@Matthias thank you for the reply!
I am using built-in KLayout text editor for working with scripts and changes from it are not appearing without restarting client.
I will try "PyCharm way", thanks for the hint
@dick_freebird , I have tried many things: closing and opening Macro Development window, editing script using external editor and reloading it in Macro Development window (in this case it does see that script was changed, but I dont see any changes …