3D Basecamp 2018: Code your own SketchUp tools

3D Basecamp 2018: Code your own SketchUp tools

If you came to one of my presentations at the 2018 SketchUp 3D Basecamp in Palm Springs and are interested in the slides, here they are. You can find all of the code examples from the talks here (and on your USB "Stick of Knowledge").In this presentation, I not only gave an introduction into Ruby coding with SketchUp, but I also explained how my own SketchUp extensions came to be and what is behind those from a coding perspective.Feel free to write any questions you have into the comments below. All the best with your Ruby coding endeavors......
Read More
Scripting 101: Learn to Code with SketchUp (my 2016 #3DBasecamp presentation)

Scripting 101: Learn to Code with SketchUp (my 2016 #3DBasecamp presentation)

This page provides some additional information for my presentation at the 2016 3D Basecamp on Wednesday, June 15th 10:30 am - 12:00 pm in Sleeping Giant Description: Get your hour of code right here, right inside SketchUp! Learn the basics of coding with SketchUp’s Ruby language during this talk with just a few, easy-to-follow exercises. Coding is a rewarding skill that lets you precisely control the computer to create anything from simple lines to parametric geometry. Best of all: If you code with SketchUp, then you can even 3D print the results. If you are an educator: With the approach shown here, you can teach your students not only modeling or 3D printing with SketchUp, but also coding. Stay with one software rather than having to teach with several different ones! More Documents:Code samples handout ...
Read More
Calculating Summed-up Volumes with Ruby (Snippet)

Calculating Summed-up Volumes with Ruby (Snippet)

This collection of small script snippets presents handy little routines that are usually too small to put into a proper extension. Use them with the Ruby Code Editor (just paste the code and hit "run") or make them more permanent as a menu item (see Appendix D in my book). I received an email a few days ago by someone who needed to calculate volumes and face areas in SketchUp for the purpose of estimating. I suggested doing this in a few lines with Ruby and as it turns out, it is pretty easy as long as the objects that need to be summed up are "solid" groups in SketchUp. I thought the solution could be useful for others, too, so here it is:Just paste the code below into the Ruby Code Editor in SketchUp. Then select the groups that you would like to sum up and press the Run button. With this version, you will get the sum of the volumes...
Read More
What’s New in SketchUp 2014? Better Ruby, for Example!

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

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: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 SnippetSketchUp 2014...
Read More