• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

HTML form to pass parameters to Ruby, view online

Scheduled Pinned Locked Moved SketchUp Discussions
sketchup
4 Posts 3 Posters 276 Views 3 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.
  • B Offline
    Buckyman
    last edited by 21 May 2015, 21:21

    We have this nice Ruby script that draws our product based on some input boxes.

    I was thinking it would be cool if we could pass the product parameters via an HTML form on our website, which means the server would have to support Ruby processing (does that even exist?). The script would save the model on the server, and finally our web page would render the model using an online viewer (similar perhaps to Sketchfab but that does not appear to support models created on the fly). I can imagine there would be some jquery to pass the data back & forth.

    Is this doable? If this is already being done I would appreciate a link.

    1 Reply Last reply Reply Quote 0
    • A Offline
      Aerilius
      last edited by 22 May 2015, 13:32

      Ruby is just a general purpose (mostly server) programming language. What you are concerned about (and what is more important) is whether the API in question is available for servers, in this case the graphical SketchUp application with its SketchUp API.

      1 Reply Last reply Reply Quote 0
      • B Offline
        Buckyman
        last edited by 22 May 2015, 14:37

        You are right of course. And since most servers, including ours, are running Linux, it looks like my grand idea is dead 😞

        1 Reply Last reply Reply Quote 0
        • P Offline
          PSGAlex
          last edited by 29 May 2015, 08:37

          Hello Buckyman,

          what you ask, can be done. Actually I have a working prototype that works like a charm. As a server you can opt for windows or mac. Sadly not linux. The main problem here is more a legal question that comes with Sketchup being remote-controlled.

          Follow here if you like :
          http://forums.sketchup.com/t/own-ruby-extension-and-sketchup-pro-license/11615/5

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

          Advertisement