Hi, Raji!
I think you need to create text labels in layout (see Layout, Shape (how to add) and LayerProperties (how to make layer visible)) and than use LayoutView.save_image or LayoutView.save_image_with_options.
Hi, Dick!
Our application generates session and sets fill-color property for text layers (text placed in dedicated layers) and this works for us. Also colors could be changed in Colors panel of Layer Toolbox.
Hi, Alexandre!
Is your script is .lym file? If so, it must be valid XML format and that assume encoding of special characters. Actually you could put body of script in separate Ruby file (so there are no need for special symbols encoding) and only …
Hi, Matthias!
I dug into code and found that MainWindow::current_view_changed generate event after title update, but LayoutView::active_cellview_changed emit title_changed event for empty title after active_cellview_changed_event.
By the word, Lay…
Hi, Matthias!
I embedded necessary data to layout's user properties and then change title in MainWindow.on_current_view_changed and CellView.on_active_cellview_changed handlers by calling same function. This works fine in former case, but not in la…
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.