# SketchUp Ruby API

**URL:** <https://www.ruby-forum.com/t/sketchup-ruby-api/104232>\
**Category:** Ruby\
**Created:** [May 15, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/sketchup-ruby-api/104232 "2007-05-15T19:05:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iceburgh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c4cdca/32.png) [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Post date:** [May 15, 2007, 7:05pm UTC](https://www.ruby-forum.com/t/sketchup-ruby-api/104232/1 "2007-05-15T19:05:08Z")

</div>

I’ve seen no mention of SketchUp in this forum, so it may  
be that many members are unaware of its capabilities and  
promise. So, here is a brief rundown.

Google’s SketchUp is an intriguing application that makes  
it amazingly easy to generate 3D models, render them, etc.  
Although it is not Open Source, a “freeware” copy of the  
distribution can be downloaded.

SketchUp’s Ruby API allows the program to be extended in  
various ways: callbacks can be registered, methods can be  
overloaded, menu items and tools can be added, etc. In  
short, the API seems to have most of the functionality a  
developer might need.

Unfortunately, the Ruby API is not “supported”, so anyone  
investing time on learning it may end up abandoned. Also,  
activity on the forum (removed\_email\_address@domain.invalid) is  
rather low, possibly because most SketchUp users are not  
programmers.

I’d love to see an influx of Rubyists into SketchUp; this  
could help to convince Google to support the API, as well  
as demonstrating its power and utility to the community.

## -r

[http://www.cfcl.com/rdm](http://www.cfcl.com/rdm) Rich M.  
[http://www.cfcl.com/rdm/resume](http://www.cfcl.com/rdm/resume) removed\_email\_address@domain.invalid  
[http://www.cfcl.com/rdm/weblog](http://www.cfcl.com/rdm/weblog) +1 650-873-7841

Technical editing and writing, programming, and web development

---

<div class="post-metadata">

**Author:** ![iceburgh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c4cdca/32.png) [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Post date:** [May 15, 2007, 11:05pm UTC](https://www.ruby-forum.com/t/sketchup-ruby-api/104232/2 "2007-05-15T23:05:52Z")

</div>

On May 15, 11:04 am, Rich M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve seen no mention of SketchUp in this forum, so it may  
> be that many members are unaware of its capabilities and  
> promise. So, here is a brief rundown.

Well, the SketchUp Ruby API not entirely unused by the Ruby community.  
For example, I wrote a method for creating geodesic spheres as part of  
one Ruby Q.:  
[http://phrogz.net/RubyLibs/rdoc/classes/Sketchup/Geodesic.html](http://phrogz.net/RubyLibs/rdoc/classes/Sketchup/Geodesic.html)

That was back before Google bought @Last/SketchUp. I accept that I’m  
not representative, though, because I have ex-coworkers now working on  
the product, and the Google SketchUp office is right behind my  
company’s building 🙂

I’m surprised to learn how few Rubyists there are working at SketchUp,  
though.

---

<div class="post-metadata">

**Author:** ![iceburgh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c4cdca/32.png) [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Post date:** [May 16, 2007, 6:12am UTC](https://www.ruby-forum.com/t/sketchup-ruby-api/104232/3 "2007-05-16T06:12:25Z")

</div>

Been using Sketchup since pre-Google and just found out myself that  
it’s got a Ruby API. Where can I download the API? Would like to dive  
into it soon. Thanks.

---

<div class="post-metadata">

**Author:** ![iceburgh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c4cdca/32.png) [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Post date:** [September 25, 2007, 11:09pm UTC](https://www.ruby-forum.com/t/sketchup-ruby-api/104232/4 "2007-09-25T23:09:13Z")

</div>

On 5/15/07, Rich M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve seen no mention of SketchUp in this forum, so it may  
> be that many members are unaware of its capabilities and  
> promise. So, here is a brief rundown.

To quote you, here’s a link to a depot of Ruby/Sketchup scripts:  
[http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY\_Library\_Depot.htm](http://www.crai.archi.fr/RubyLibraryDepot/Ruby/RUBY_Library_Depot.htm)

Thanks for that!

---

<div class="post-metadata">

**Author:** ![iceburgh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/c4cdca/32.png) [@iceburgh](https://www.ruby-forum.com/u/iceburgh)\
**Post date:** [May 16, 2007, 8:43am UTC](https://www.ruby-forum.com/t/sketchup-ruby-api/104232/5 "2007-05-16T08:43:35Z")

</div>

At 1:11 PM +0900 5/16/07, Adrian Loh wrote:

> Been using Sketchup since pre-Google and just found out  
> myself that it’s got a Ruby API. Where can I download  
> the API? Would like to dive into it soon. Thanks.

It’s built into SU 6. Here’s a useful link:

[http://download.sketchup.com/sketchuphelp/gsu6\_ruby/Docs/Ruby-classes.html](http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-classes.html)

See also removed\_email\_address@domain.invalid

## -r

[http://www.cfcl.com/rdm](http://www.cfcl.com/rdm) Rich M.  
[http://www.cfcl.com/rdm/resume](http://www.cfcl.com/rdm/resume) removed\_email\_address@domain.invalid  
[http://www.cfcl.com/rdm/weblog](http://www.cfcl.com/rdm/weblog) +1 650-873-7841

Technical editing and writing, programming, and web development
