Google SketchUp contains a Ruby application programming interface (API) for users who are familiar with (or want to learn) Ruby scripting and want to extend the functionality of SketchUp. This interface allows users to create macros, such as automated component generators and additional tools, to be included in the menus within SketchUp. In addition to the API, SketchUp also includes a Ruby console, which is an environment where you can experiment with Ruby commands and methods.
With the Google SketchUp Ruby API you can you can: