KLayout
  • Discussions
  • Sign In
Home › Search
Sign In · Register

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register
  1. Merge layer with Ruby script

    Matthias
    by Matthias · April 2016
    To use Cell#copy_tree, you'll need to create two layouts, load the two files into these two layouts and then copy over the source cell into the target cell using Cell#copy_tree.
  2. Merge layer with Ruby script

    israelcass
    by israelcass · April 2016
    I'm back and trying to understand how I merge two layers.. I search for Cell#copy_tree but I don't understand how use it.
  3. Merge layer with Ruby script

    Matthias
    by Matthias · April 2016
    Cell#copy_tree and relatives are your friend.
  4. Python script example to merge gds files

    Matthias
    by Matthias · February 2016
    The safer (but slower) way is to read each layout into a separate pya.Layout object and copy the content over from this local layout to the target one using Cell#copy_tree. This will assign unique cel
  5. Python: How to remove artifacts from using object.size() ?

    jchurch
    by jchurch · September 2015
    #Correct Object access
  6. Sorry for dumb question - How I can made my layout from previously saved cells?

    Matthias
    by Matthias · August 2015
    The safe option is to read the individual layouts into a new layout object and copy the contents over into the master layout using Cell#copy_tree.
  7. undo stack

    Matthias
    by Matthias · June 2015
    I just like to add that usually you won't need the manager object. The LayoutView#commit and LayoutView#transaction methods are usually sufficient:
  8. Error when using change_pcell_parameter

    cgelinek_radlogic
    by cgelinek_radlogic · June 2015
    Hi Matthias,
  9. Error when using change_pcell_parameter

    Matthias
    by Matthias · May 2015
    But what's definitely missing is an easy way to enforce coerce_parameters. How about something like "Cell#coerce_pcell_parameters" or "Instance#coerce_pcell_parameters&q
  10. klayout-r2739: Small patch for build.sh and build error

    friendfx
    by friendfx · April 2015
    Hello,
  11. Running one lym from another?

    davidnhutch
    by davidnhutch · February 2015
    But what if "#CODE GOES HERE" is very long code, and you have many buttons, so it is unweildy (and bad organization) to paste all these on_triggered actions in one macro. Well, if it
  12. Button Shortcut to PCell?

    NMF
    by NMF · February 2015
    OK, I did some more reading and I see that the code wrapper I was using was from old scripts before macros. (From http://klayout.de/forum/comments.php?DiscussionID=310&Focus=1425#Comment_1425)
  13. Button Shortcut to PCell?

    davidnhutch
    by davidnhutch · February 2015
    I think #1 may be possible but difficult.
  14. Convert PCell to Static Cell

    davidnhutch
    by davidnhutch · February 2015
    I would like to use Layout#convert_cell_to_static as you say, to convert a PCell (say, all PCells on the layout for argument's sake) to static cell.
  15. Instancing one GDS file as a cell in the open file

    Matthias
    by Matthias · February 2015
    * copy over the shapes and cell tree from that new layout into the master layout using Cell#copy_tree: "target.copy_tree(newLayout.top_cell)"
  16. Convert PCell to Static Cell

    Matthias
    by Matthias · June 2014
    since 0.23.x there is a method Layout#convert_cell_to_static which converts a PCell to a static cell. It takes the cell index of the proxy cell (that is a representative of the PCell in the layout) an
  17. Instancing one GDS file as a cell in the open file

    Matthias
    by Matthias · May 2014
    If the "read again" approach is too simplistic, I can offer Cell#copy_tree_shapes. There is a version of that method which takes a CellMapping object which allows to be very specific
  18. Instancing one GDS file as a cell in the open file

    Matthias
    by Matthias · May 2014
    Since version 0.23.x there is better support for copying shapes, instances and even cell trees across layouts. Have a look at the Cell#copy... method family. There are even hierarchical copy functions
  19. Strange behavior probably involving redraw

    david234589
    by david234589 · March 2014
    make this work #libs = [] #pcells = [] #counter = 0; #RBA::Library.library_names.each_with_index { |l,i| # libs.push(l) # pcell_list = #Get a list of the pcells in library l #lib
  20. New toolbar button to draw then run code

    Matthias
    by Matthias · March 2014
    Regarding 1.), I just answered a similar request here: http://klayout.de/forum/comments.php?DiscussionID=439&page=1#Comment_1873. In your case, since you have a STROKED_POLYGON PCell, the para
Previous Next
Powered by Vanilla