sketchucation logo sketchucation
    • Login
    1. Home
    2. joshcastellano
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    J
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 4
    • Groups 1

    joshcastellano

    @joshcastellano

    10
    Reputation
    1
    Profile views
    4
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    joshcastellano Unfollow Follow
    registered-users

    Latest posts made by joshcastellano

    • RE: FTP zip file upload

      Wow! This is thorough! I can't thank you enough for your insights. You've given me several paths to take as a solution to this. If I can convince users of the plugin to use a full Ruby library and install it, that will limit the number of hoops needed to pass through.

      Having a prerequisite library doesn't sound all that bad now that it can be easily suggested to potential users of a plugin.

      Thanks a Million, Dan. I'll keep the community updated on what I go with.

      posted in Developers' Forum
      J
      joshcastellano
    • RE: FTP zip file upload

      @dan rathbun said:

      Not possible. You will need server-side PHP ".asp" scripts.

      Oh, yes, I agree that that is impossible. I meant that I hoped for one single program as a solution. In this case Ruby. And that the likely solution is going to be several program languages with server-side processing to process the uploaded file.

      posted in Developers' Forum
      J
      joshcastellano
    • RE: FTP zip file upload

      Thanks for the prompt reply, Dan. I also agree that a WebDialog would be the way to go at this time. I'm fluent in Javascript and PHP but was hoping this could be done using one programming language client side.

      I'll be happy to report once I get that file transferred over and will share the snippet with the community. Shouldn't be too difficult using Javascript and that example you provided.

      On a side note, is it possible to pack a full Ruby install along with a plugin for Sketchup? I figure that if I'm going to distribute this, users are going to have to extract the plugin into the Plugins folder. Automating that along with a full Ruby install would take the same amount of effort, right? Possibly less if it is automated (kind of like that web exporter EXE file which was really an extracted archive).

      Thanks, again, Dan. I'll post my solution for other before/after me with the same challenge.

      posted in Developers' Forum
      J
      joshcastellano
    • FTP zip file upload

      Hi guys,
      Have searched the forum for answers all day and I have gotten no where. I hope anyone of you could shed some light on this. I thought I had found the answer yesterday but I was wrong. I know that it's been touched on once before and I apologize for bringing it up again if you all wanted the subject dead.

      I assumed I would be able to use the net/ftp class in Ruby to upload a ZIP file to a web server. I read that I could but this afternoon I realized that Sketchup might not have the net/ftp class built in. I know I can install a full Ruby framework but I would rather not do that as I'm hoping to duplicate this on other machines "out of the box." I tried including the net/ftp library from a full install to my local machine along with the 'socket.so' + 'monitor.rb' files and that doesn't seem to work.

      Is this even possible? The ZIP file just contains images of the SKP model. I ZIP'ed them so that I wouldn't have to open and close an FTP connection many times.

      I read in the forum that someone was looking for a similar solution a couple of years ago. "How much are you willing to pay," was one of the answers. Though I do think there is an answer out there, I'm just looking for a direction. I even researched the 'win32API.' Thought I might be able to do use that. Should I attempt at using the WebDialog and use Javascript to upload the file?

      posted in Developers' Forum
      J
      joshcastellano