Hi,
Is it possible to write path with variable widths? For example, I want one extreme of the path to be 30 um wide and the other to be 5 um, with a progressive variation. This looks like the "Path" edit tool --> extension "Variable", but it simply ignores the "start" and "end" values when I draw, considering only the "Width" field. This results in a path with constant width. I use KLayout 0.22.9 under Linux Mint Debian.
Thank you for your help and attention.
Cheers,
Alexandre.
Comments
Unfortunately I don't think so. Paths are by definition two things: a set of points defining the "hull" and a (single-number) width.
You will have to draw it as a polygon, I think..
Here is a script I wrote to draw a PCell polygon -- you can modify it to draw whatever taper shape you like. Then it can be called either via script or just by clicking the "Instance" button then modifying the xy coords.
Note that I use the following separate .lym file with the "Run on startup" selected, to register this PCell (and others) on startup.
BTW I believe "extension" for a path is not the width at start and end, but a measure of how far beyond the start and end the path is drawn.
For example, zero extension means the path terminates exactly at the x and y location specified. Nonzero extension (on the start or end) means the path extends a little beyond what was specified for the start or end.
Thank you very much for your help with the script code and the elucidation about the "path variable" extension. I will try to work on the code and check the possibility of adapting it for my needs.
Thanks again!
Bye!
Note that PCell may be overkill, depending on what you are trying to do. If you just want to draw a polygon you could just use ruby script to draw a polygon. I guess my larger point was that a path won't work here, you need to draw a polygon.