Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
Batch converting skp files to other formats
-
I'm trying to make a small Ruby script that batch converts .skp files to other formats...
Could someone show sample code on how to open .skp file and then export it as .dae? I tried this but for some reason it's not working (.dae file has different content than original .skp file):
model = Sketchup.active_model model.import "C;/skp_files/example.skp" model.export "C;/dae_files/example.dae" -
It seems importing an skp file as a component requires user interaction, namely to place it somewhere (Trimble?!?!).
Try this:
model = Sketchup.active_model file = "C;/skp_files/example.skp" Sketchup.open_file(file) model.export(file.sub(/\.skp$/, ".dae"))
Advertisement