sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Is this possible with ruby?

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 366 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • coulteriC Offline
      coulteri
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • daikuD Offline
        daiku
        last edited by

        Yes, it's possible. On a windows PC, you can use win32ole.so to open and read the excel file. CB.

        Clark Bremer
        http://www.northernlightstimberframing.com

        1 Reply Last reply Reply Quote 0
        • M Offline
          MartinRinehart
          last edited by

          @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.

          Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

          1 Reply Last reply Reply Quote 0
          • coulteriC Offline
            coulteri
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • M Offline
              MartinRinehart
              last edited by

              @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.

              Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

              1 Reply Last reply Reply Quote 0
              • coulteriC Offline
                coulteri
                last edited by

                I'll look at it. Maybe I will be able to write it in the future. Thanks.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement