How to export model info as .csv files using ruby console?
- 
 I want to be able to export (as .csv) simple lists of model info such as styles / scene names etc with a Ruby code snippet. I'm sure it must be quite straight forward, but I'm clueless with Ruby. (though I would like to start learning it). What I need at the moment is just a code stub that will generate the csv file from one class of model info — right now I need the style names — and I can swap out the different methods for other info once I understand the basics. Anyone have a starting point for me? Thanks, Doug 
- 
 I can't help you with the code, I don't know Sketchup's API very well at all, but as for a starting point for learning... I used this to learn the basics of ruby, and I thoroughly reccomend it. 
- 
 This script creates a simple plugin that traverses your model and creates a csv file 
 
- 
 @garry k said: This script creates a simple plugin that traverses your model and creates a csv file That's great Gary — does exactly what I want. Many thanks, Doug 
- 
 @oceanembers said: I can't help you with the code, I don't know Sketchup's API very well at all, but as for a starting point for learning... I used this to learn the basics of ruby, and I thoroughly reccomend it. Starting to learn Ruby is on the to-do list once I'm through my current set of deadlines. Thanks for the link and the recommendation. I'll check it out. 
Advertisement

 
                             
                             
                             
                             
                             
                             
                            