@double0darbo I think if you want to open in macro, because when you use macro you need to open KLayout first, so whey not directly open the file without using codes? What I did is I use compiler like Pycharm, VS code or something. This can be easie…
After a long time study, I get your idea. Thx. I must admit that I still need to read and explore more about the DRC document.
Besides, I wonder whether we could show more DRC examples. I mean code examples. and it will be better that we could own …
Ok, I agree with you. Maybe we should not compete with PyCharm. But I still think the shortcut will be a little bit easier to use. If this function is not hard for you, can you just spend some time to add this? After all, a tiny development for KLay…
This is a good question, before I did this part as
import syssys.path.append(r"xxxx")
By doing so, you can simplify the path part, but for register part. I use same structure as you.
I think you missed some codes, I cannot reproduce your code. Once I run your code, I get some errors. Can you provide all codes, I mean a successful one?
This is a good question, as I tested, it seems that the value defined in __init__() is not bee…
Of course, here is the figure to describe this.
(Image)
See this red line on the figure? I want to judge whether the length of this line is smaller than a given value. In another words, the length of this red line has a maximum value.
Thank you for your detailed reply. This is definitely a good reason. And I really hope one day in the future, the D type can also be stable enough. :smile:
Hi, friends from Korea. Seems that you are also working with DRC problem. As I know, you can manully set the value you want like:
l1 = (1, 0)l1.width(0.2.um).output('The minimum value should be 0.2 um', 'The minimum width is 0.2 um')
In output(str…
@tomas2004 hhh, I am glad that we have same thought. As an old saying goes, people always think alike!
I have checked that discussion. But I do not think that is a good reason for suppporting no DRegion class. Such as we have Polygon and DPolygon, …
@Matthias Thx, It cost me some time to learn Ruby and learn the DRC document. For now, I understand something. And I changed this a little bit. What I use is:
l1 = input(171, 0)l2 = input(118, 120)ol= l1 & l2eps = ol.width(0.265.um, angle_limit…
This is a very important issue, hope this one could be displayed in a prominent location. I tried to find tutorial of Python on official website for a whole morning.
@dick_freebird I agree with you, but I think we can set some control points and restrict auto layout a little bit, and then everything is fine. In my opinion, it will be a little bit convenient, of course currently, it cannot deal everything.
Besid…
Oh my god, is this mean that for region stuff, we can not use float coordinates? Is this mean that if we want to deal with nm, we need to use dbu as coordinate first, and to make integer coordinates, and then we convert to um? Seems this is not conv…
OK, I get your idea. But you know if we use python macro in KLayout. We need to add a location. Maybe you can consider to make this location also as the default searching directory. Then we do not need to use sys.path.add() to add the searching dire…
Normally, I write them directly in PyCharm and run them to write layout into KLayout.
Today I tried your code in KLaout Macro tab. It works well, but with a small problem. I find that I need to use absolute path rather tham relative path. I mean I …
Thank you. I get it. So is there a way to change unit from dbu to um by using Python Script? I mean not by multiplying like 1e3 or something. What I really want is like a global unit control.