sorry for the late reply and for sharing the code!
You can also achieve this without a loop using RBA::Region objects. Region objects can cover all shapes from a layer. Basically you can write:
ly.each_cell do |cell| next if cel…
Have you tried the solution suggested in the forum? I think this works.
But I don't want to create arbitrary files lying around when the program exits (for saving .lyp). What if multiple users look at the same file with different set…
"0um" is not a valid specification that's why the error happens. Unit and value have to be separated by a dot.
You cannot check "disconnection" by a space check, except if you have a threshold. A space check will detect spaces and if lets …
the ticket is not fixed yet - it's a bigger issue. I'd suggest to use the workaround for some time.
I can reproduce (3), but I have not debugged the issue yet. But I think I can explain the issue:
The problem is basically that C…
you're right, sorry. The line should be
metal1 - metal1.width(1.0.um, projection).polygons
'square' is also good, but it probably selects more from the metal as "narrow".
In general the problem is what to define as "narrow" …
this is just a partial log. Please send the whole build log to the address on the Contacts page. I can't help with partial information.
And if you paste a log here, please use triple backticks to mark code blocks (Markdown syntax). Th…
It's good you got the same result :-)
The diff tool is a "semantic" tool while "XOR" is purely geometry. "diff" takes the shapes and compares one to one. For example, if two rectangles form an "L" and in the other layout there is a…
The layout layer names and the names inside the layer list are entirely different things. The layer name in the layout is a database property. The name of the layer in the layer list is for display purposes.
In GDS you can't write laye…
I compiles with Python 2, but from the log I see it's trying to find 3.3 (libpython3.3m.so.1.0).
Please make sure that when you run "build.sh", the right python interpreter is in the path.
You may also try the RPM I put on the downloads page.
Shape properties are fine. Instances have their own properties and it's not common to have instances inherit cell properties. Both are different concepts and used for very different purposes, so I'd not mix that.
the issue should now be fixed with 0.25.8.
(3) may happen because when you run a script and have code inside some classes, the classes may not be redefined. Remember that you're working inside a live Ruby/Python interpreter: classe…
I can't reproduce the issue, but I think I have some idea what happens. I'll try further to find a way to reproduce it.
The workaround is probably to use the cell index to obtain the cell:
# instead of # cell = obj.inst().ce…
I think Popen blocks because Qt implements it's own event loop (on Linux maybe it does a select, but I don't know if that helps keeping Popen active). There is a competition for CPU time and Popen looses.
The QProcess approach wor…
yes, tiling should help. But that's not available yet as an option in the fill dialog. You can however add it through scripting and embed the algorithm inside a tiling processor.
That's not entirely trivial, specifically if you want t…
the easiest way to is check whether there is a main window:
batch_mode = !RBA::Application::instance.main_window
The main window is nil if in batch mode (-b or -zz). Otherwise it's a non-nil reference to the main window object.
Maybe there is a macro installed which somehow prevents using rulers.
Macros are kept inside %HOME%\KLayout too in the macros, ruby etc folders. So you could rename the entire "KLayout" folder to something else. Then KLayout should s…
Yes, shape properties are possible. You could also use texts to label the ports, if that is an option.
Instance properties cannot be used because the PCell is the target of the instance, not the instance itself. Multiple instances can s…
that's because 0.24.7 is a bit outdated. The script above requires a 0.25.x version.
A compatible version of the script is:
RBA::Application::instance.main_window.load_layout($layout, 1) lv = RBA::LayoutView::current cv = RBA::CellView:…
you cannot. A PCell shall deliver layout and not modify the external attributes of a cell (such as name, placement, etc.). The user properties are among the external attributes. Instances cannot be accessed from within the PCell because KLayo…
you can achieve this through a script:
Save this to "show.rb":
RBA::Application::instance.main_window.load_layout($layout, 1) cv = RBA::CellView::active cv.cell = cv.layout.cell($cell)
And run KLayout this way:
klayout -rm sho…
I guess that is related to a broken configuration. Could you try removing or renaming ~/.klayout/klayoutrc (Linux) or %HOME%\KLayout\klayoutrc (Windows)? This should make KLayout start with a clean configuration.
In case you have configure…
yes, the idea of the "LayoutToNetlist" API is to deliver geometry information along with the nets. The methods provided currently are "shapes_of_net" for flat output and "build_net"/"build_all_nets" for hierarchical output into a new l…