Require 'csv' and 'win32ole' do not work

Hey guys,

I’m having a problem developping a script that exports info from sketchup to excel. I need to require ‘csv’
and to require ‘win32ole’, but neither of them work.

When I write "require 'csv'" or "require 'win32ole'", I get the same error:

Error: #<LoadError: no such file to load -- csv>
or
Error: #<LoadError: no such file to load -- win32ole>

P.S., I’m using Sketchup 8 on a 64 bit computer running Windows 10.

Do any of you know why this problem is occuring?

Thanks

YES. The Ruby standard library was not supplied with SketchUp 8 nor 2013 (nor older versions.)
SketchUp did not ship with it’s own Ruby library until version 2014.

However, I wrapped up the Ruby 1.8.6 standard library into a SketchUp extension.
It is published on GitHub for v8 and v2013 on MS Windows platform only …

Thanks a lot Dan!

1 Like

Don’t forget to get the example scripts if you haven’t yet …