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