Create an XML file using Sketchup Ruby API

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 !

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

“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

half way down this Help Center aricle

john

1 Like

thank you sooo much for your answer