• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

How to upload skp to server by ruby plugin?

Scheduled Pinned Locked Moved Developers' Forum
10 Posts 8 Posters 1.0k Views
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.
  • B Offline
    bigcatln
    last edited by 14 Jul 2011, 02:38

    I wan't to upload a component to my own server and share with others ,just like the share model in Sketchup, but I dont' find any ruby script can do this? Can anyone help?

    best regard

                     Bocui
    
    1 Reply Last reply Reply Quote 0
    • J Offline
      Jim
      last edited by 14 Jul 2011, 08:25

      There are no ready-made solutions specifically for uploading .skp files to a server.

      But it depends on a lot of things. By "server" do you mean a computer on your local network or one on the Internet?

      Hi

      1 Reply Last reply Reply Quote 0
      • B Offline
        bigcatln
        last edited by 15 Jul 2011, 00:42

        @jim said:

        There are no ready-made solutions specifically for uploading .skp files to a server.

        But it depends on a lot of things. By "server" do you mean a computer on your local network or one on the Internet?

        thank you for help
        but,I think there is no much difference whether it is local network server or internet server, the serve I mean is a iis service provider

        In fact sketchup has the function by shareing model onto google server, can't ruby do the same?

        1 Reply Last reply Reply Quote 0
        • C Offline
          Chris Fullmer
          last edited by 15 Jul 2011, 01:15

          There are currently no scripts that simplify saving a model to a webserver. Ishboo is working on something like this, formfonts might have one, I think smustard has something in a few scripts. None of these are public, except maybe Ishboos, but I don't know that it is. It might be a closed project.

          So there are no simple scripts to help you do what you want. Can someone help? Yes, it is do-able. How much are you willing to pay?

          Jim asked if you really meant web server, or if you just meant a local server. There is a big difference, so brushing off his question was not helpful (brushing off questions in general is also very off-putting to people when they try to help and the person asking for help doesn't answer the question 😒 ).

          Ruby can easily save a file to a local server. But to save to a webserver you will have to jump through more hoops. You will need to be able to communicate with that server somehow. Maybe its easy enough, I don't know. I'm not experienced in that realm at all.

          So yes, SketchUp does send models to the Google warehouse. There are scripts that do similir things. So far no one has been able to think of any that are public for you to use. If you would like to write it yourself, you will probably find help here on the forum, as long as you quit telling people that you don't think their questions are relevant 🤓

          Lately you've been tan, suspicious for the winter.
          All my Plugins I've written

          1 Reply Last reply Reply Quote 0
          • A Offline
            adebeo
            last edited by 19 Apr 2012, 11:59

            Hi I have the same needs ? any update ?

            adebeo
            Nos Formations sketchup
            Notre blog : www .adebeo.com/wp/
            Nos tutoriels: www .youtube.com/adebeo

            1 Reply Last reply Reply Quote 0
            • D Offline
              designingcrime
              last edited by 7 Jul 2012, 18:18

              I am also looking for the same thing, has anyone cracked this problem yet?

              1 Reply Last reply Reply Quote 0
              • F Offline
                fredo6
                last edited by 8 Jul 2012, 22:52

                I think Curl can do the download and upload.
                It can be invoked as an Exe, but it can also be linked as a library if you write a C extension.
                Note also that Curl is installed by default on Mac

                Fredo

                1 Reply Last reply Reply Quote 0
                • D Offline
                  designingcrime
                  last edited by 9 Jul 2012, 16:56

                  I agree, I think using curl from a c extension is the only way to do this. I don't think anyone has figured it out. The closest thing I have found is Dana Woodman's extension -

                  Link Preview Image
                  GitHub - danawoodman/google-sketchup-file-downloader: [NOT MAINTAINED] A generic and reusable SketchUp Ruby C extension file downloading utility to be used within SketchUp plugins.

                  [NOT MAINTAINED] A generic and reusable SketchUp Ruby C extension file downloading utility to be used within SketchUp plugins. - danawoodman/google-sketchup-file-downloader

                  favicon

                  GitHub (github.com)

                  I recently asked him about the status of this project and he replied.

                  "At this point it is abandoned. We were having some successes with it but as far as I remember it was failing with SketchUp. If you want to dive in and play around, feel free!"

                  I am going to pick this project up with the free time I have but I am curious if anyone else has attempted this and actually gotten it to work in Sketchup?

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 10 Jul 2012, 13:25

                    @designingcrime said:

                    I am going to pick this project up with the free time I have but I am curious if anyone else has attempted this and actually gotten it to work in Sketchup?

                    I tried, but the project is missing the CURL libs. Wasn't able to find the files Dana had referenced in the project. If you can find them then I can have a look at making it work within SketchUp.

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • Dan RathbunD Offline
                      Dan Rathbun
                      last edited by 10 Jul 2012, 14:22

                      There are already several Ruby bindings written for curl.

                      http://rubygems.org/search?utf8=%E2%9C%93&query=curl

                      Maybe one could be made to work under SketchUp ??

                      I'm not here much anymore.

                      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