Trans = RBA::Trans.new(RBA::Point.new(-bbox.left, -bbox.bottom)) However, here's a script that emulates that function: ly = RBA::Layout.new Since it is more like a "beautification" of a cell, I did not consider it work making a script method out of that. Unfortunately not all functions are available as script methods. Lv.save_as(0, # cell index, for some reason it needs to be "0" # output format is DXF, all option keep default # select his cell as the top cell, fit allįid.puts("index of top cell in CellView index #") (at least on Windows, as I am travelling today) how can I write output to shell, neither puts nor $stdout.write seem to work How to access this function from Ruby script The print functionality of the GUI migth be sufficient, but I did not find any hint I would no hint how a Postscript or PDF could be created by script I have attached my results, it would be nice if your or someone else could comment. However, meanwhile I played around a bit with Ruby Scripting (its my very first time using Ruby)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |