How to upload skp to server by ruby plugin?
-
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
-
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?
-
@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 providerIn fact sketchup has the function by shareing model onto google server, can't ruby do the same?
-
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
-
Hi I have the same needs ? any update ?
-
I am also looking for the same thing, has anyone cracked this problem yet?
-
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 MacFredo
-
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 -
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
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?
-
@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.
-
There are already several Ruby bindings written for curl.
Maybe one could be made to work under SketchUp ??
Advertisement