Hi Laurent,
That is probably because the Qt binding is not enabled on Linux by default. If you build with -with-qtbinding the Qt classes are available for Ruby as well. But building will take considerably longer then.
Regards,
Matthias
Hi Laurent,
thank you for the explanation - that is a valid scenario.
I agree that multiple colors would make that easier. For a quick solution: how about toggling the nets in the list? My tip of the day here: you can configure the net browser suc…
Hi Manfred,
The use case I figured is that you'd basically select one net a time which is highlighted then. Since there is just one net I did not imagine the need for different coloring. The ability to select multiple nets at once is nice, but my r…
Hello,
thank you :-)
Regarding your problem with the polygon - that is intentional. Polygon points are compressed - collinear points are removed because they don't add information to the polygon.
The reason for that is compaction. If after the re…
Hi,
Ok, placing a CELL is something different. Here is the sample code (not tested). It assumes you already have created a cell called "SUBJECT" and it creates a new top cell called "TOP" with all these instances:
# create a ne…
Hi,
you'll always need some probe shape in your die cell that defines that point you want to measure your location at. A text will do, but you can use box as well. Then the following script prints the coordinates of the centers of that probe shape …
Hi Kenneth,
there is always the option to build Ruby yourself or a build KLayout without Ruby support (however then you will loose some major part of the functionality).
I have seen the Fedora "bug fix" saying that libruby-static.a has b…
Hi Kenneth,
that is strange because -rblib is taken from the configuration of your ruby installation and that says it was built with libruby-static.a. Maybe you need to install a specific package (like ruby-static or similar).
It won't build with …
Hi Kenneth,
you're too fast :-)
I just edited the reply. Now it says: try to link against a static version of the library. There should be one in /usr/lib64, maybe it's called libruby-static.a or similar (I don't have experience with Fedora myself…
Hi Kenneth,
you have to make sure the build is done against the static version of your library. The shared object does not provide all the symbols required.
Matthias
Hi bunday,
There is not built-in feature for that, but
this problem can be solved through scripting. There is some sample code provide at http://www.klayout.de/doc/programming/database_api.html. Here is some slightly modified version of that:
# cr…
Hi Max,
well, yes I agree ... but it's difficult to find an initial setup that fits everyone. Maybe I have to provide some options when installing - i.e. "novice user", "expert user", "viewer only" ... I just did not s…
Hi Max,
then it may be connected to stdout/stderr redirection through cygwin. I guess it will work fine if you call it from cmd.exe.
There are "real" cygwin builds available, i.e. from http://artfiles.org/cygwin.org/pub/cygwinports/x86_6…
Hi David,
".lym" files are not native ruby, hence you cannot load them with Ruby's "load". The idea behind ".lym" is to provide meta-information for integration into the application. They are intended for the entry-poi…
Hi,
can you paste the complete script? Saving images can be automated, but I suspect some script error. It's difficult to debug a script without seeing it.
Matthias
Hi Max,
maybe there is some problem with the ruby shared library? Does ruby work in the macro IDE's console when you start Klayout in UI mode from the cygwin shell?
Matthias
Hi Max,
you indicated the problem already - there are too many ways to go and everybody prefers his or her favourite language. One feasible and language-independent way is to write a text file in KLayout's GDS text format and use KLayout to convert…
Hi Max,
Well, at least you can blame me ... :-)
I can't confirm the missing text visibility in the default configuration. I removed the configuration file in my installation and texts still appear. But it's pretty easy to disable texts when playin…
Hallo,
your problem is typically solved by scripting the generation of such layout.
You can use KLayout's built-in scripting feature to do so, but now it's up to you whether you want to spend time to learn how to do so or still create the layout m…
Hi Laurent,
Maks is basically right - you can disable texts. But that will disable text plus the tiny dot for the text location.
The dot itself can't be separated from the text, since often the dot is the actual information of the text.
You can h…
Hi Max,
of course it's supposed to work :-)
My personal experiences with CygWin are somewhat limited - I tend to use the MinGW shell rather than CygWin. Are you using the CygWin build or are you using the native Windows binary in a CygWin shell? I…
Hi Laurent,
your sample is actually fine. In particular the Ok button handling is the way KLayout's Qt binding suggests. You could also bind the conventional Qt signals to slots using QObject#connect, but there is not substantial advantage of one m…
Hi Laurent,
You can use the QComboBox in place of the four QRadioButton objects. So you need just one widget instead of four. The most important methods available for a QComboBox are
* addItem(string) to add a new item to the combo box
* current…
Hi Ania,
Your description is somewhat short, so I can just guess. "Add new layers" can be used together with a layer properties (.lyp) file that contains some layers, but maybe not all. All layers not given in the .lyp file will then be a…
You'll need coded libraries to provide PCell's. That is something else - a coded library is not a layout file but a piece of code that registers something like a dynamic library in the system.
There is a lot of information available on how to code …
Just a rough guess: you came across the Windows-backslash-double quoted string-incompatibility issue. In double-quoted strings, the backslash starts an escape sequence and will insert control characters (or something else), but not the backslash cha…
Hi,
A "library" is in the most simple form (static layout, no PCell's) a plain layout file with multiple top cells, one for each library component (note that the components have to be top cells). That file is put into a specific place so …