Hi OkGuy,
there is not much specific about the snapshots - at least not compile wise.
Full compilation (including qtbinding) is done in ~30 mins on my old dual core (Ubuntu 12.04LTS, 32bit), gcc 4.6.3. Without qtbinding it's about 10 mins.
Someti…
Hi CY,
you don't necessarily need to create a technology setup before starting. Try to start without a technology (choose default or clear the technologies you created) to begin with, that may be less confusing.
In a fresh layout, create layers wi…
Hi Nelson,
former versions of KLayout have various limitations regarding the maximum permissable coordinate value inside OASIS files. The latest version (0.22.7) should support the 32 bit coordinate space for all OASIS properties. The message indic…
Hi Laurent,
"compiling for multi-threading" isn't just as easy as it seems. First, you'll have to use algorithms that can be put onto multiple CPU's, second you'll have to insert a whole bunch of mutexes and other fancy things into your c…
Is does what it says: it will show the selected cell as top cell without the cells it is embedded in. By clicking at it, it will basically disable all layout expect the layout of your selected cell plus it's child cells.
You can return to the previ…
Hi David,
sorry I did not catch the last one about the key binding: of course the wrapper code is responsible for the behavior. The wrapper code is "old style menu binding" which was necessary before macros came into existence.
Simple ru…
Hi Laurent,
I somewhat doubt that depth of hierarchy is a good measure for the importance of some shape - whether it's a text or not. Sometimes it's not even possible to define a uniform depth of hierarchy at which a shape should appear. Neverthele…
Hi Laurent,
thanks for sharing the script with us.
I took the liberty to nicely format your nice script :-)
The forum supports Markdown formatting - if the Markdown checkbox is checked, code can be formatted by indenting it with four spaces.
Tha…
Hi David,
thanks for sharing this information with us. You're right - it is strange that there is no method for this yet. But the good news is there will be one in the next major release: Layout#find_layer will exactly do the above.
And one more b…
Hi Canny,
you mean "how to show another cell"? You can do that this way (in this example the name of the cell to show is "MY_CELL":
cell = view.active_cellview.layout.cell_by_name("MY_CELL")view.select_cell(cell, view…
Hi David,
that is basically possible, but you'll need to code it in Qt/Ruby. That requires that the Qt binding was enabled upon building KLayout (the binary packages are Qt enabled). Some documentation about the Qt binding can be found here: http:/…
Hi David,
I am still confident that it's working, because I still can reproduce the functionality both on Linux and Windows.
Just a question: does the keyboard shortcut show up in the menu entry in the Tools menu? In my case I have used the follow…
Hi David,
comparing two cells is the job of the XOR tool.
Load both layouts into the same panel. Make the cells you want to compare the new top cells ("Show as new top" in the cell tree, switch between the layouts with the drop-down box …
Hi Canny,
the easiest solution is to prepare a .lyp file with the layer properties (colors, stipples, styles and
the layers you want to show) and load the layer properties:
# load the layoutmw = RBA::Application::instance.main_windowmw.load_layout…
Hi Laurent,
basically layer index and layer properties are two different items - one is the related to the layout database and one to the view. To find the layer properties for a layer index, you'll need the LayerPropertiesIterator object and the f…
Hi David,
here are some answers to your question:
For 2.) you'll have insert a shape rather than changing it. So
# instead ofshape.path = new_path# do:shape.shapes.insert(new_path)
If I understand your request correctly for 3.) you want to repla…
Hi David,
I don't have time right now to look into your code, but I hope I can do so soon.
Regarding the key assignment: it's working on my installation but under the following conditions:
* The key must be pressed in the layout window (not insid…
Hi Wimbur,
The .lyp file was intended to define the information displayed and to act as a display filter.
You can make a layer properties file to show all the remaining layers in some default color and style by adding the following entry at the en…
Hi,
the idea is to first add an image with "Edit/Add Image", adjust the position and size and then let the script convert that image (or the images) to GDS geometry.
Is that what you are looking for?
Matthias
Hi,
that was the effect of a competing request: leave the arrow keys active even if the focus in somewhere else, for example in the layer list. Fulfilling that request was not compatible with Qt's shortcut system (which implements the key binding),…
Hi,
Sorry, it should say "DBox". I edited the code.
You can run "klayout -z ..." with the script, but not with -zz. In the latter mode there is no view object and KLayout is a pure layout processor without any graphics.
Regard…
Hi chhung,
this is code which does that:
# input fileinput_file = "t10.gds"# width, height of imagewidth = 500height = 500# rectangle to draw (left, bottom, right, top in micron coordinates)rect_drawn = RBA::DBox::new(-100.0, -200.0, 100…
Hi,
maybe the message is misleading. It's not a matter of name. Instead there must be exactly one cell without any parent cells. In the cell tree, only one cell must be at the root level (unless you have selected flat cell view).
If that is the ca…
Hi,
no, there is no such option yet. But you can invert a layout by using the "NOT" boolean operation. Draw a big rectangle covering your layout on a different layout and use "Edit/Layer/Boolean" to perform a "NOT" ope…
Hi Joel,
thanks for mentioning the last fact - as was already trying to dig into the issue :-)
I hope I understood the problem description, but
I can imagine that refreshing of the library messes up the references to the TEXT instances. Internall…
Hi Shirly,
I'm afraid there is no way to fix that - apparently the file is shortened, maybe because your disk was full or some network problem. The file size is not particular big, so it's not an issue of some 2G limit or similar.
Did you save the…
Hi Bertrand,
it should compile if you replace the line 422
std::map<std::pair <db::LayerProperties, int>, std::string>::const_iterator ln = name_for_layer.find (*ll);
by this one:
std::map<std::pair <db::LayerProperties, int>…
Hallo,
The "make array" function is not readily available for scripting. To be more precise: the scripting feature does not map the capabilities of the user interface but that of the layout database. In the user interface, the code behind…