I think you probably want one of these tools

http://sketchuptips.blogspot.com/2007/08/plugin-unfoldrb.htmlor
http://waybe.weebly.com/