Hi!
I think problem lays in fact that you modify layer properties. You don't need to do so, and li.current.visible = <visibility condition> should be enough for your task.
Hi!
You could use File | Save/Load Layer Properties commands. Alternatively you could generate session file in your application and load it with -u command-line option or via File | Restore Session command in KLayout.
Hi!
Ruby API is almost same as Python. Most importang thing is to know classes and their methods as well as context of their usage. Python example could serve this purpose :-) You could try to search this forum for Ruby examples of same API.
Hi!
I think you should look make loop over each cell in layout (Layout.each_cell) and then use Cell.bbox. See documentation and similar code as example.
It'll be useful if you'll create diagram of your layout. Where X/Y labels are located? In same layer/datatype or different one? You could also use user properties (see Shape's property, set_property methods) to identify ports or their coordinates in…
Hi, Matthias!
Sure, view title should have priority over cell view title. Implementation for my application that I had in mind followed this rule: set view title for view with one file and cell view titles for view with several files.
Hi, Matthias!
Yes, I discovered this too during debugging :-)
But I'd like to still update file name on tab bar when user switches cellviews (but without top cell name, added by default), so this is reason why I asked for cellview enhancement.
Hi, Matthias!
Below is log of my KLayout build with added output (method name, stage + LayputView title) from layMainWindow methods. Somehow title is reverted back to original form after change in Python. I'll try to add more logging to catch updat…
Hi, Matthias!
We debug Python code in our application only in script mode, so GUI is not initialized.
You could create wrapper for KLayout that would behave like Python (this would also solve possible conflicting switches), but KLayout still need …
Hi, Matthias!
Weird, but it didn't work for me :/ I tried standard 0.26.10 and our own 0.26.4 builds on Ubuntu 18 with sessions with one and for layouts.
Could logging help to drill into source of problem?
Hi, Matthias!
VS Code run python module that establish connection between IDE and Python process. This is why I wrote about VS Code requirements to Python (or pseudo-Python application). -c is needed to extract Python version and platform (VS Code …
I'm not aware about design intent, but it'll be good idea to treat path in command-line parameters and internally constructed ones in same way. Currently former is taken in raw form without converting to URI when later are converted to URI.
Hi, Matthias!
I tried your code in command line situation: klayout -rm <configuration> -u <session> and it doesn't work :-(. First call to on_file_open show empty title, callback one - doesn't affect tabs.