Thanks, that worked. Now I still have the problem, that RecursiveShapeIterator seems to check on bounding boxes rather than shape geometry, so I get a False also, when I put my test_box inside a shape with a hole. Is there a method to check on shape…
Yes, thanks. Now I understand the structure. But when I read out iter.at_end(), I always get back False, even if I use RecursiveShapeIterator in a confined box, where no shapes are present on any layer. It seems, that the box confinement does not wo…
Ok, but how can I get the layer indexes, where a shape exists, which overlaps with the test_box? For me, it is unclear, what the iterator contains exactly.
Wow, thank you, taylorn, for your fast response, which was completey correct! It works now without the error message, but the output is empty. How should the report look like, if an overlap of test_box and shape is detected by RecursiveShapeIterator?
I want to read out the layers, which are present for a given layout coordinate, given by a selected ruler. So I tried the approach above:
import pyamw = pya.Application.instance().main_window()lv = mw.current_view()cv = lv.active_cellview()ly = cv.…
Hi Matthias,
fortunately, I had some time to play around with Python and wrote code to implement the ARC ruler in KLayout. The usage is pretty easy: Choose ARC Ruler from menu, click three points on the arc and get a circle style ruler with center …
Your answer is coming very fast. Nice to see, that the tool is maintained so well!
The crash happens, when I am editing ruler properties with the properties dialog on an existing ruler. For example, during the typing of a value in a field. It does …