If anyone is familiar with 3ds MAXSCRIPT, here's a Quadrulate script someone made. Granted it's not much use for SketchUp, but maybe some of the concepts in it will help someone find a ruby solution for SketchUp.
Attention Required! | Cloudflare favicon(www.scriptspot.com)
(*.mzp is just a zip file for Max)