Is this possible with ruby?
-
Hello,
I need to construct a big number of 3D objects from parameters, that I have in excel table. Center of each 3D object's base has its own xy cordinates, next I have distance of northern, eastern, western, southern and top face from this centerpoint. So the ambition is to produce cube or rectangular parallelepiped. Is it possible to do this construction batch using ruby plugin?Thanks a lot.
coulteri -
Yes, it's possible. On a windows PC, you can use win32ole.so to open and read the excel file. CB.
-
@daiku said:
On a windows PC, you can use win32ole.so to open and read the excel file.
Or you could output the .xls into a .csv file. (Use Open Office if Excel can't do this.) Then the Ruby would be cross-platform.
-
Actually, I can't write ruby script myself. I was only asking, if it is possible to do. I need to do a model of vegetation. I have a lot of shrubs planted in 1m raster and I watch how they grow for several years. That means I (will) have data from which I would like to generate number of boxes of various dimensions, and then I could use e.g. subdivide and smooth script to simulate the shrub population positions and shapes. It's only an idea.
-
@coulteri said:
Actually, I can't write ruby script myself.
I'll put a 'hurry up' on the second half of my tutorial. You need to know only a small subset of Ruby to do SketchUp scripting.
-
I'll look at it. Maybe I will be able to write it in the future. Thanks.
Advertisement