Create an XML file using Sketchup Ruby API


#1

I’m working on a Sketchup extension that collects data and generate
it as an XML file, need to create an XML file that contains data (area,
volume …) from a sketchup house model, using sketchup Ruby API.

I found methods like Nokogiri, REXML and Builder but do they work even for the Sketchup Ruby API ? if so how ?

Does anyone have any idea or examples ?

thank you !


#2

there is a ‘Generate Report’ example ruby file somewhere on the internet…

and there’s also the built in ‘Generate Report’ with a GUI for customising…

john


#3

“and there’s also the built in ‘Generate Report’ with a GUI for customising…”

Can you explain a little bit more as i’m still a beginner and just started learning abt the sketchup ruby API.

thnx


#4

half way down this Help Center aricle

john


#5

thank you sooo much for your answer