Sketchup has import and export scripts, similar to Blender. They’re written in the Ruby language.
From some help website:
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 tools, menu items, and other macros, such as automated component generators, 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 or methods .
For additional information on the Ruby programming language, visit www.rubycentral.com.
Click on Help > Ruby Help for additional information on SketchUp Ruby API.
Currently, Google does not offer technical support for the Ruby Application Programmers Interface (API) or for any Ruby scripts created by third parties. We encourage posting Ruby API questions to our SketchUp Ruby API Forum. General Ruby information may be obtained at http://www.ruby-lang.org/en/.
Google reserves the right to change this policy at any time.