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"))
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement