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

    Excel to SU ( 29/7/08 version )

    Scheduled Pinned Locked Moved Developers' Forum
    25 Posts 12 Posters 6.3k Views 12 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,
      here are some examples:
      attachment No1 is small example of terrain data (only 25 boxes). No2 is table with coordinates of border points of these boxes. No3 is example of what I would like to reach.

      Thanks. C.


      1


      2.xls


      3.skp

      1 Reply Last reply Reply Quote 0
      • D Offline
        deanwilliams
        last edited by

        Hi Oscar,

        Thanks for uploading this Ruby!

        I can see great potential with it in architecture. I have been looking for a script that will allow me to take data (say the area of part of a building in square meters) from an excel sheet and translate it to a circle of the same area in Sketchup.

        Your ruby loads in sketchup but it only opens excel. Would you be able to tell me how to make the ruby open the actual spreadsheet?

        Thanks,

        Dean

        1 Reply Last reply Reply Quote 0
        • A Offline
          AtlJimK
          last edited by

          Oscar,

          Thanks for setting this up. I have tried to edit your original SS to my needs but I somehow think you have the script tied to the specific cell addresses (i.e. Row 12, Column Q). I would like to create my own list but each time I mod the original SS it ceases working. It also does not read the count of the items and just places three of each in the scene.

          1 Reply Last reply Reply Quote 0
          • A Offline
            AtlJimK
            last edited by

            Can someone help with this script? We could use this for architectural programming tasks. Thanks in advance.

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              @atljimk said:

              Can someone help with this script? We could use this for architectural programming tasks. Thanks in advance.

              Who is "we" ??

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • A Offline
                AtlJimK
                last edited by

                @dan rathbun said:

                Who is "we" ??

                The "proverbial" we, meaning anyone who uses SketchUp in a programming environment.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  AtlJimK
                  last edited by

                  Is there a programmer who would be interested in further development of this type of capability? My company would be willing to pay for this work. If you are interested please PM me with your contact info. TFL.

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    Accessing an xls file via Ruby IS possible on a PC using other .so's etc.
                    However, to be cross-platform and quick/easy to use why not make the xls data as a csv or tsv file [or even a txt format] - all easily made formats from Excel. Then import the text data from that file by reading it in Ruby. The csv/tsv formats also open in Excel by default too.
                    There are many scripts already that will both read and write csv/tsv files.
                    For example importing 'clouds' of points in a csv to using in making a mesh, or writing out tabulated component data for cutting lists etc...
                    If you have a specific requirement feel free to PM me with more details of how you see this working for your office - I often do this kind of thing...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • Dan RathbunD Offline
                      Dan Rathbun
                      last edited by

                      @deanwilliams said:

                      Would you be able to tell me how to make the ruby open the actual spreadsheet?

                      if you have ".xls" associated with excel.exe, then on PC, do this:

                      UI.openURL("C:/some/path/to/spreadsheet.xls")

                      If you wish more integration, you can use OLE calls (requires the Win32OLE.so library file.)
                      see:Windows Automation
                      and Microsoft Windows Support

                      I'm not here much anymore.

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        rivingregend
                        last edited by

                        Hi Oscar Lok

                        I was really interested in your ex2sk ruby when I found it recently . I downloaded it from your post and got it to work and it's really good good. It is exactly what I was looking for.

                        I actually wanted to be able to edit it a little bit but I think it's in rbs format at the moment. Would it be possible to get the rb version of this script so I could play around with it?

                        Thanks

                        Joe

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

                        Advertisement