Export colors

How I can export the colors from sketchup to Word or Excel?

Using Ruby API or C API ?

Basically with either, you’ll access the model’s Materials collection, iterate it, reading each material member’s color property. What you do with this depends upon which API you wish to use. The simplest workflow would be to write out a CSV textfile, and import that into Excel.

If you are using the Ruby API from inside a running SketchUp process then you can use the WIN32OLE class to open Excel and insert the color values directly into a worksheet object. (There are already several topic threads on this in the Ruby API category.)

If you are programming in C or C++, then you’ll need to reference Microsoft Technet docs on making OLE calls into a Excel document or process.