Ganesh,
I see now that you have an existing python program and want to avoid rewriting it to run inside KLayout, so instead your idea was to have KLayout run inside your existing code.
However please be aware that the latest bleeding edge KLayout …
Yes a script can be executed. Here's a simple one to get you started. It flips the existing layout if there were only one open. It will need to be modified to flip only your desired file2.gds.
include RBAactive_layout = CellView::active.layoutt = T…
I'm sorry, I don't have the answer. (However I'm sure Matthias or others will have some advice.)
But just a clarifying question:
When you say: "I have just my Python UI where i want to display GDS image and allow panning, zooming, measuring.…
This may be an unhelpful comment, but I will just mention that I too was unable to see why that's not working. Well at least you know someone else had the problem!
However if you instead do the following process it will work. (You alluded to this.)…
Thanks for reproducing the issue.
In a similar vein to "what is invisible should not be selectable" -- I also notice that cells are always selectable with "partial" command, which I don't think is the desired behavior.
Steps to…
Yes, I'm making your job too easy, you should give me a raise!
(Of course that was a joke -- nobody's being paid to do this which makes Matthias's software all the more impressive!)
I see. I think you are right but will try a few more things to see if I can isolate the issue.
A simple fix for the meantime would be to have a toggle button in the Macro Editor that disables the breakpoints. As for me, I have only used breakpoints…
Use
lp.cellview
instead of
lp.cv_index
The .cellview method belongs to class LayerProperties, for which LayerPropertiesNode is a child. I just tried it in the following code and it seems to work.
include RBAapp = Application.instancemw = app.m…
FriendFX,
Did you observe any issues on Ubuntu 14.04?
I never managed to pin down the issue. (I am the David from the original post.) I installed on another Win7 machine and the problem went away. Since then I don't use that computer but installed…
No prob, thank YOU for such an awesome tool!
I see the problem with dragging an edge and (A) now.
One possibility: If an edge is vert or horiz, and this hypothetical "Snap absolute" is checked, it would snap absolute. If an edge is any o…
There are great resources at http://www.klayout.de/doc.html/
But briefly:
Draw: Choose Polygon tool. Click on a layer. Click around then double-click to finish.
Note 1 -- Grids are helpful here. To set the snapping grid: File > Setup > Grid…
jmhutchi,
Nice last name :) Perhaps we have the same.
Matthias may tell you otherwise, but here is my take.
What you ask is possible via "Plugin" class of the API. But it's very tricky.
Perhaps instead you have a script that does the f…
Just a note that may help someone in the future.
You can use (some) gems using the method described below. (Windows 8, KLayout 0.23.9)
Simply download the source code of a gem, copy everything in its 'lib' folder into C:\Program Files\KLayout\lib\…
covalent,
I took a quick look and actually I cannot detect why it is not working. I also tried layout.flatten(tc.cell_index,x,false) and observe what I think is funny behavior when you change x from 0 (nothing, no funny behavior) to 1 (flattens 1 l…
covalent,
Can you please post the entire working code? It will then be easier to help reproduce the problem. For example in the code you posted there are several undefined variables including: segpitch,orthopitch,nseg,north,pitch, ...
Also, minor …
UPDATE
It's all working now, aside from two minor things:
* You can post discussions, scripts, and comments, but when you go to edit an existing discussion/script, that part doesn't work yet.
* The presentation of the script and the presentation o…
Hi cls,
You clearly followed the example on this page: http://www.klayout.de/0.22/doc/programming/traditional.html.
You can do it with 'MenuHandler' as I talk more about below, but 'MenuHandler' is not necessary. Let's look at maybe the simplest e…
Not sure I understand.
This is not how polygons are defined in GDS/OAS spec. However I believe what you want is to draw a polygon, make it into a cell, then place the cell at some x and y location.
* Draw a polygon
* Select it
* Edit > Selectio…
One quick thing is worthy of note, lest someone tries it and is unable to post a script.
When you post a new script, currently you need some text in the "Additional Description" field, or else you get an error "Body is required"…
UPDATE
OK, I wrote a little plugin for Vanilla 2. It works this way: In Vanilla's config file you specify one parent category that you want to be your 'scripts' parent category. The rest of the forum behaves normally but the 'scripts' category you …
Same problem and answer here: http://klayout.de/forum/comments.php?DiscussionID=584&page=1#Item_4
Basically, there is no insert method that takes that argument. Use Point and Polygon, and divide all x and y coords by layout.dbu.
Ah. Got it.
No problem, it is easy to look at the Qt docs online anyway. And I should have looked to see what was in the base class (or printed it with "print object.methods").
Thanks again,
David
Aha!
Strange thing, and I know why I couldn't find it now.
Your website documentation does indeed list "selectionModel" under "Public methods" of QTreeView. BUT in the Macro IDE when I click the "?" button and search …
Thanks Matthias,
Yes that is the way I used to do it. I just have certain use cases when it's advantageous for .lym to be on equal footing as .rb, when it comes to the ability to 'load' or 'require'. Anyway I suppose either method works.
Thanks fo…
Matthias,
I'm having trouble extending the above example (the ruby example earlier) to a QTreeView.
In particular I can't tell how to get data back (i.e. get the selected rows) from QTreeView. The difference is, in the previous examples in this th…
Hm, turned out to not be too hard.. Paste this into a .lym file and "Run on startup". I also included ability to run .lydrc.
# Make it possible to load .lym and .lydrc filesmodule Kernel def load_lym(file) require 'rexml/document' …
You can use the a.icon = "file path" line which you commented out?
But I guess you are asking a way to assign this via GUI, for which there is no way that I know of.
In fact, I think it cannot be possible, because there is no xml tag co…
Matthias,
That's really neat, I had no idea you could do that.
Is it possible to employ a similar trick to draw a shape? Say I wanted to recreate the "Box" button that is already on the toolbar. (I know it exists already, but I'm imagini…