You are right, it's nontrivial. I wanted to do that once and gave up (though, I didn't spend a huge amount of time on it).
If you get it working, post it here so I can see how it works.
I'd add x and y as user inputs.
Where did you find TheRedToo…
Lastly, you could put some error checking on the input values, and also I'd recommend wrapping the bulk of the calling .lym file in
lv.transaction("Generate rect grating")begin # CODE HEREensure lv.cancel lv.commitend
Incidentally, I…
You were very close!
Search for the string "#DNH" to see what I added. Basically,
* You needed to convert the string "9/727" into an integer layer number 9 and an integer datatype 727.
* You needed to convert w, h, n, and s, fr…
Yes, the only down-side of .lym is you can't call one .lym from another .lym using the ruby "load" command. (You can call .rb files though.) Otherwise, .lym and its associated benefits (like "Show in menu") is preferred.
BTW Mat…
Can you post your PCell code too? Then I can reproduce your error or fix the code.
I don't have time right now to try, but it's possible just replacing the word "MenuAction" with "Action" may work. (And remove the class MenuActi…
UPDATE
I spent quite some time with phpCodeCabinet. The code is awful (no separation of back-end and front-end; uses many deprecated PHP functions and some functions that have been removed entirely from PHP5). In the end I figured we could do bette…
I think #1 may be possible but difficult.
Just go with #2. For that you need to:
* Know what PCell parameters you will want to pass. There is a script here that will spit that out for any PCell.
* Make a dialog box. There are two ways: Create .ui …
You are right there is no insert(dbox) method for shapes class.
Here is how I do it.
# Puts a box with corners at (0,0) and (10.001,20) micronsinclude RBAlayout_view = Application.instance.main_window.current_viewlayout = layout_view.active_cellvi…
Thanks! Works great (with the modifications below).
For future readers:
This gives an error due to instance_eval wanting the raw DRC string rather than the xml .lydrc file. The error is
C:\filename.lydrc: syntax error, unexpected '<'<?xml v…
CIF files are simple text files, you can paste a short example here. If you precede each line with four space characters then it will show up in code markdown format. To put four spaces in front of each line just select all and indent it with a text…
I like the idea of "Apply to all". This would of course imply "Apply to all similar", so if you have many things selected, change say a wire width, and click "Apply to all" then it would change all wire widths in the se…
A question for those who might use phpcc, then a progress update from me.
Sorry, I know this is wordy but bear with me.
QUESTION:
Here are a few ideas for code categories that we could use on phpcc.
what are some other categories that people use…
Hi,
This is not a major issue but I thought I'd point it out.
I hope to use your code above to strip all layer names out. Just keep the layer number and datatype number and remove the string.
The following script works. However the "" s…
Ah - never mind. I forgot there is a quick and dirty way to achieve this:
RBA::Application.instance.main_window.menu.action("tools_menu.drc.macro_in_menu_x").trigger
assuming you set up the .lydrc file to show in the usual place, and whe…
Matthias,
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.
However for this I need to get the PCell's cell index. When I try to get a "handle&…
simchak,
Are you able to paste in a simple CIF file, one saved as-is from KL without these "highest level statements" called, and one manually fixed? (Or, one made in a different tool if you prefer?
I am talking of a non-flattened file, …
Amen!
Theo: Matthias gave a short historical summary here: http://klayout.de/forum/comments.php?DiscussionID=454,
But Matthias, feel free to add more if you wish... I'm also interested more about your background!
Thanks,
David
Matthias,
A stupid kitten video might give you a million likes, but it's not lasting. The next guy would film another kitten video tomorrow and get another million likes, and your kitten video would be forgotten in a matter of days or months. No of…
Try this:
# Builds a layout from separate files# To use: Make a new layout with at least one cell, called "TOP"# Modify the INPUTS accordingly.# This script will instance other gds/oas files under "TOP".begin include RBA # INP…
Here is the quick grid switching code. It allows switching even in the middle of drawing. e.g. Start drawing a wire or something. Halfway through, press "1", "2", "3" and the next vertex will snap to the new grid.
Perh…
Might I suggest that there be an option to have every 10th dot be larger? That may visually serve the purpose intended by xamax. (e.g. if you are viewing a 1um grid of dots, the ones corresponding to 10um would be 3px instead of 1px.)
If instead, …
Thanks Matthias,
By "a user management which works independently from the administrator" do you mean allowing people to create their own accounts? Yes I agree that is needed. Ideally being logged in to the forum should also mean you are l…
Heh. Yes it's all-important. :-)
First, if you don't already know it's probably a good idea to read up on what a GDS cell is, and what it means when a GDS (or OAS) cell is "instanced" inside another cell. Once you understand that, proceed…
Oh I think I misunderstood your comment about a forum management program for the repository. Yes in fact that was my original suggestion in another thread, was to use a forum like this one that we are writing on right now. Unfortunately this particu…
Thanks Z Lim,
Really good ideas on the larger description area and the inclusion of KL version. Will add to the list of mods. Some of the smaller mods like this I could probably figure out how to do myself, but larger things would be a challenge fo…
Not to answer your question but quick tip -- to format code, use four spaces in front of each code line. (Or more spaces for indents within the code.) You can do this manually or else just paste into something like Notepad++, select all, press tab t…
Laurent_c,
Thanks for the tip on using brackets for links. I was wondering how to do that.
Thanks for the links to scripts. You didn't comment on the basic idea of having a centralized location for such scripts though. Yes there is a handful at ht…