Maybe what I wrote was not very clear, but I can say it in a different way: you can create arrays by two different methods, either with "Edit > Selection > Make array" or with a cell by clicking on "Array Instance" in the c…
You should first read through the documentation, and get familiar with the API: https://www.klayout.de/doc-qt5/programming/database_api.html
Note that "Make Array" does not produce an "Array Instance".
* "Make Array" w…
FWIW, I agree.
I also would be interested by an improved "Adjust origin" function, where the user could point and click for setting the desired origin.
I indeed send the two files, and I explain the people how to load the "lyp" file.
"Perhaps KLayout could automatically look for a *.lyp file with the same base filename as the CAD file, and load it automatically"
This may alrea…
The layer table is independent of the design files. You can save a "lyp" file that describes the layer names and appearance. You can reload it later. See the "File" menu and look for "Layer Properties".
Olivier
I now have Klayout 0.25.8 under Windows, and the error mentioned above still occurs.
Olivier
PS: Your explanation about point (3) makes sense, but my full setup is just the script above within Klayout. I didn't define any class or imported any modu…
Hello,
This question is also of interest to me.
If I have selected a shape, how can I get the absolute transformation in a Python script? In other words, inside a script, how can I get the value that is displayed in the user interface window "O…
I tried and I observe the same. The attribute layer.name can be read correctly, but if a new value is assigned to it, this value is not memorized and not shown in the layer panel.
Hello,
I just did the following:
(1) I reproduced the error with my script above => the error is reproduced.
(2) I changed the code with the line that you indicated => the script now works.
(3) I changed back to the original script => the o…
Hello,
I wanted to open a new topic, but I searched in the forum and I realized that I had already asked that question 3 years ago! This means that this is a need... at least in my view. So I wanted to put this "feature request" back on th…
Hello,
I managed to do what I wanted with a combination of KLayout and a text editor.
Within KLayout, I used "Search and Replace" and exported the GDS in text
format. I finished the work in a text editor with find/replace regexps.
I no…
Hello Matthias,
I will answer point to point:
* Gerber format is not only used for PCB. It is used for any photoplotting work, which includes a great number of possibilities (cheap photomask fabrication, art, whatever). A Gerber file really makes…
There may be a bug or a limitation in the importer. I have this file structure:
Workdir/import.pcb
Workdir/Gerber/file1.GBR
Workdir/Gerber/file2.GBR
For successful import, I set the "Base Directory" to "Workdir/Gerber".
Howev…
Hello,
Thank you for indicating the right direction. I managed to import my Gerber file. The procedure is in fact easy, but I found it daunting at first. Here are my comments about this:
* The procedure is very professional, but may be a bit too d…