Matthias

About

Username
Matthias
Joined
Visits
16
Last Active
Roles
Member

Comments

  • Hi chhung, I guess the problem is caused because when you multiply a Point object with a double value (the DBU), it still stays an integer coordinate point object. For example: RBA::Point.new(100,200)*0.1 -> RBA::Point(10,20) But: RBA::Point…
  • Hi David, Given the latest KLayout version, a CIF circle is converted to a single-point round-ended GDS path or to a OASIS circle object. You can check that by double-clicking at such a circle. The properties of that circle should show a path with …
  • Hi Jisha, I'd suggest you create a patch with your changes. That should simplify the task of applying your changes to KLayout's current code base. One (elaborate) way of doing so is for example to employ the Subversion configuration management sys…
  • Hi Jisha, I'd suggest you create a patch with your changes. That should simplify the task of applying your changes to KLayout's current code base. Best regards, Matthias
  • Hi David, this is a job for the layer processing framework http://www.klayout.de/useful_scripts.html#layer_proc.rbm. The ruby module itself contains some documentation about how to write processing scripts. Although it is intended as an interactiv…
  • Hello, right now the easiest way to convert a layout to a different database unit is to write it to a temporary file and use the options provided by the '''writer''' to scale the layout: ly = ... # layout to writenew_dbu = ... # new database unit …
  • Hi footang, Thank you for that suggestion. Actually I figured that the path might be pretty long, so it won't display in the limited space of the status bar. If you double click the item and choose "Instantiation" in the properties dialo…
  • Did you by chance hide a cell? In that case that cell's bounding box will be shown instead of the cell itself. Matthias
  • Hi Canny, I think the problem is caused because not every integer between 0 and l3.cells might be a valid cell index. The program should not segmentation fault, but I can't exclude that in every case. To find the cell called "TOP" better…
  • Hallo, right now it is not possible to modify built-in dialogs in Ruby. Or at least not to the extent you wish that to happen. Under certain circumstances you might be able use qt4ruby for that purpose but I that's a stony path to walk .. If you …
  • Hi Canny, unfortunately not all functions are available as script methods. One of them is "adjust origin". Since it is more like a "beautification" of a cell, I did not consider it work making a script method out of that. Howev…
  • Hi Canny, Ok, given that requirement the script looks somewhat different ## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; e…
  • Hallo, you can move an instance when it's shown as a box. Decrease the hierarchy level until the instance is shown as a box instead of the detailed view. Then you can pick the box as any other object and move/delete/rotate the instance. Regarding …
  • Apparently it does not have to do with the linking mode, but they dropped the "." in Ruby 1.9.2. Here is a discussion thread about that: http://stackoverflow.com/questions/4965556/why-isnt-current-directory-on-my-ruby-path. The solution a…
  • Hi Stefan, thanks for the hint regarding statically linked ruby. I did not know that it behaves differently compared to the dynamically linked one. Best regards, Matthias
  • Hi David, thanks for that hint. I just copied and pasted my command line, but of course the binary usually is located in the path. I already edited my comment. Matthias
  • Hi chhung, your script is missing a tiny but important detail: the "if" inside the "lsrc.each_cell_bottom_up do |cisrc| ..." loop is missing. See my code above: # Now process all (but only these) cells which are part of that …
  • Hallo David, there may be numerous reasons why the script is not working which I can't figure out without details. However the the CIF->GDS conversion there is a simple solution if you work on Linux: if you build KLayout, it will create a coupl…
  • Hi chunng, the problem is caused by the test for the cell name: lsrc.each_cell_bottom_up do |cisrc| if lsrc.cell_name(cisrc) == srccellname ... endend is not confining the copy to a subtree. Instead it will only select the cell with srccell…
  • Hallo, there is some confusion about BOX records in GDS. The original GDS specification considered BOX records not to be necessarily rectangles, but instead BOX objects where some kind of "hollow" polygon. I think the original intention w…
  • The command-line documentation is somewhat hidden: http://klayout.de/command_args.html There is also a description of the -t switch. Matthias
  • Hallo, Regarding the second question, the flat count is not necessarily two times the count. Consider the following hierarchy, where B is instantiated in A and A itself in TOP. Assume there a three instances of B in A (the instance count is 3). But…
  • Hallo, it is possible to create a marker database by script and show the marker browser dialog with that marker database. I have added a sample script that demonstrates how to create, fill and show a marker database. In that script the database is…
  • Hallo, On my installation it has the desired effect - KLayout is started with the given configuration. I am testing that with the background color - if I prepare a configuration file with a new background color and use your script to load it I get …
  • Hi chhung, what gcc version are you using? It appears to be a pretty old one. Also Qt appears to be an older one. I'd recommend gcc >=4.3.x and Qt >=4.5.x. I'll try to fix it for Qt >=4.2.x - that is the oldest version for which that make…
  • Hi chhung, Apparently Qt switched to a const version of capturedTexts somewhere between Qt 4.2 and 4.5. You can fix the compile problem by using a const cast in line 593 and 594: Replace m_re.capturedTexts() with const_cast<QRegExp &>…
  • Hi chunng, Providing a way to manipulate the properties of multiple objects at once is a bit difficult because of the variety of objects that can be selected. That is more a domain of scripting. The next Klayout release will show the number of sel…
  • Hi Jon, maybe you have minimized your cell list by collapsing the resizable section at the left. Try to find the splitter (the mouse will turn into a arrow symbol when you are over it) and drag the section open by moving the splitter to the left. …
  • Hallo, you can achieve the same using the -qbin and -qtinc options of build.sh. But hacking build.sh for that purpose is a valid option as well :-) Best regards, Matthias
  • Hi Canny. What precisely do you mean by "how many times"? Do you mean the flat count, i.e. the number of times a cell appears in a given other cell when drawing that cell? This count is not the same than the number of instances, because a…