What’s New in SketchUp 2014? Better Ruby, for Example!

February 28, 2014 in News Blog, Tutorials

By now you most probably have heard that SketchUp 2014 has been released. There are quite a few great new-feature overviews and reviews out there and I’ll suggest you look at the ones linked at the end of this post to get up to speed. For now, I just wanted to show you why the Ruby update in SketchUp 2014 is pretty amazing. Look at this image:

Flickr and SketchUp

What is so interesting about the image above? Well – those are images that were loaded from Flickr directly into SketchUp using the now included “net/http” library. Since SU 2014 not only updated Ruby to 2.0 but also included all of the standard libraries, stuff like this is now possible. You can integrate Net functionality much more and create all kinds of interesting mash-ups. To replicate what I did above, copy the following code snippet and either paste it into the Ruby Console (it now accepts multiline Ruby!) or into my Ruby Code Editor.

Code Snippet:

SketchUp 2014 Links:

Cross-post from: http://www.alexschreyer.net/cad/whats-new-in-sketchup-2014-better-ruby-for-example/

2 responses to What’s New in SketchUp 2014? Better Ruby, for Example!

  1. Hi, Alex, thank you very much for sharing your codes!

    I tried your code as suggested in your Ruby Code Editor and hit “execute code in Sketchup” button. However, I only got the following message in the editor, and no model is created in Sketchup.

    Done. Ruby says: Nil result (no result returned or run failed)

    Am I missing sth here? (I’m new to Ruby programming for Sketchup)

    Advices are greatly appreciated!

    -Joe

Leave a reply

You must be logged in to post a comment.

1 trackback

Skip to toolbar