sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [ruby-doc]The missing Sample Code scripts compilation

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 4 Posters 478 Views 4 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.
    • H Offline
      herodes
      last edited by

      In the very old SketchUp Ruby API Deveoper'sGuide there is a part that reads "SketchUp Ruby API Example Code" in that section it describes a zip file that you can download from the main sketchup site (the @Last era one), and see test/sample code for most of the classes of the Sketchup API. I even remember myself having downloaded this file once and it was a real eye-opener, I occupied wmyself with script in Sketchup lately once again and I found the need for those files. I went to the wiki doc site and found that the Example Code fields links' where not existant. I googled the filename of a test file and found a url leading to an .rb,... tried it without the filename and it responded 404,... I changed to another filename and there it was. I went through the Classes and downloaded each sample code file I could find from that url.

      Btw it is a url to a google server.(http://download.sketchup.com/sketchuphelp/gsu6_ruby/Sample Code/<filename.rb>)

      Long story short I present to you a nice asset especially if you are still at novice level like me...
      It contains 61 scripts, and there are some classes missing due to the fact that there was nothing to download.
      I prepended the filenames with a number just so I could see the order I was downloading.

      Sketchup API Sample Code Scripts

      %(#BFBFBF)[http://arhitektonas.blogspot.com
      I know me,... I am that guy...
      ]

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        Nice detective work!

        RickW
        [www.smustard.com](http://www.smustard.com)

        1 Reply Last reply Reply Quote 0
        • M Offline
          Matt666
          last edited by

          Coool Thank you Herodes !

          Frenglish at its best !
          My scripts

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            Ah! Great!

            I really wish Google would sort out the SU API docs... grumble

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

            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