Thanks Matthias,
You are right, in this case it's easier to code a circle myself. I was more reporting what I thought was a strange behavior, and unsure of where else (in more complicated scenarios) it would show up.
I see now I was using the wron…
Sorry for all the long lines. And here is a 1x2 (micron) rectangle from KLayout, saved by KLayout as DXF, that doesn't open in Inkscape. Not knowing the DXF format, it is hard for me to see where to look for the problem. I thought perhaps your train…
When I say "other DXFs open fine in Inkscape" -- I haven't tried a lot, but only simple drawings saved from SolidWorks. For example here is a simple 1x2 rectangle I drew in SolidWorks and saved as DXF. Inkscape opens it just fine.
0SECT…
To get code markup working, preface each line by (at least) four spaces. Not [code][/code]. Link
This is most easily done by pasting into your favorite text editor, select all, press Tab to indent it by four spaces, then copy-paste here.
There is a similar script in TRT. Install TRT according to the instructions, and go to TRT Menu > Selection > Adjust Cell Origin.
That script is based off http://klayout.de/forum/comments.php?DiscussionID=173 - scroll halfway down.
As it say…
Thomas,
It is probably superfluous now that Matthias has given an example of running DRC from Ruby script, but you may want to look at "Quick DRC.lym" which is inside TRT. (Install it, then go to Layout > Quick DRC.)
That can easily b…
Are you looking for these?
http://klayout.de/doc/code/class_AbsoluteProgress.html
http://klayout.de/doc/code/class_Progress.html
http://klayout.de/doc/code/class_RelativeProgress.html
There are some examples on those pages
David
KLayout's DRC system is built upon Ruby. You can use regular Ruby functions in the DRC tab in the Macro Editor. Think of DRC as like a framework or like a library that you can use, with lots of "magic commands" to simplify coding. DRC is m…
Thanks for the test case. I haven't tried to use it with STROKED_POLYGON, or any PCell where you specify vertices for that matter.
Unfortunately I'm on vacation without access to my home computer (or any computer where I can install KLayout) for a …
The easiest way I think is to use "PCell array generator.lym", which is part of TRT. Once you've installed TRT per the instructions at that link, reopen KLayout. Open a new layout. Click the menu at the top and then Cells > PCell array.…
Probably you are in some other drawing mode.
The 2nd (I think) toolbar button from the left has a drop down next to it. Click the drop down and you will see all the drawing modes (add, subtract, merge, etc). You want Add.
There is an alert dialog …
... But if he didn't release under GPL, it may not have grown to this point, so maybe he wouldn't have received such an offer... GPL is the reason I even took the time to try KL in the first place - probably similar for many other people. Bravo Matt…
http://www.klayout.de/doc/about/macro_editor.html, scroll down to where it talks about "Show in menu"
For example to put it at the end of the tools menu, in Macro IDE, click orange "Properties" button (you have to hover over it …
For a built-in function, see Display menu > Goto position. But, that is one-at-a-time
For a scripted solution, use this as a starting point: E4K > Misc menu > Goto position. You could dump the xy coordinates into the code itself, or have y…
I understand now, though it's not clear just from the wording in the dialog box. Actually, it might be nice to add that feature? I mean, a dx,dy cell margin box that controls this, so the user doesn't have to draw an additional dummy layer. Just a t…
With regards to your original question: I assume you want to anisotropically scale the whole layout (all shapes on all layers in all cells) by some fraction, like 1.1,1.2 (10%,20%). Is that correct? In that case you could write a script but it's not…
Quick fix until Matthias can answer: In your child cell, draw a dummy layer defining the cell's extents including that margin you desire. Choose that layer in Fill Tool > Fill Cell > Boundary layer. Works for me on KL 0.23.4.
Better fix: I ac…
Matthias,
I too thought it was a drawing issue. However I observed before (though I forgot to mention) that the effect described above is not dependent on view level -- you can zoom in or out all you want, but the invisible ones never show up.
How…
Shriram,
Sorry I can't reproduce that. Here's what I do:
* Make a top cell
* Make a child cell. Put some boxes in it.
* Make sure you're viewing "top" as the actual top cell in the layout
* Place an instance of the child cell.
* Select t…
Very bizarre - by changing only the num_pts parameter (on KL 0.24.3) I am able to make the curved path either show up or not show up.
Try this modified code. It is the same except for the first two lines and the .each_with_index block. That just al…
Hi jmhutchi,
I interpret this to mean that you want a dialog box, with two dropdown menus. The first is populated with the layer/datatypes in the current layout, and the second is populated with the list of cells.
If so, download and install TRT, …
Strange, I don't observe that on my windows system. Can you include some more information? For example
* what version KLayout?
* does it always happen? Does it just happen after running a script? If so, what script?
* when it is in this state what …
Thanks Lukas,
This may be obvious, but I'll add that the error is thrown on the final line. (It creates RecursiveShapeIterator just fine, it just fails on next(iter2).)
David
Lukas,
(Quote)
I'll test it again, but will report errors to you via email rather than by this thread, because there could be a lot more going back-and-forth and I don't want to clog up this thread.
(Quote)
It works and returns the date and time.
…