[REQ] Save all .skps in folder to earlier version
-
Anyway to convert all models in a folder to v8 if they are saved as v12 aka 2016
-
This works for me on Win7X64. Just copy-paste in your ruby console
It first asks for the source directory, next it will ask for the target directory. And then it converts all sketchup files and saves a copy to the target location.
USE AT YOUR OWN RISK - USE A COPY OF YOUR SOURCE DIRECTORY
source_path = UI.select_directory(title; "Select Source V16 directory") target_path = UI.select_directory(title; "Select Target V8 directory") folder_list=Dir.entries(source_path) folder_list.to_a.each{|file| if file.include? ".skp" source = File.join(source_path, file) status = Sketchup.open_file source model = Sketchup.active_model target = File.join(target_path, file) status = model.save_copy(target, Sketchup;;Model;;VERSION_8) end }
edit: no clue why indents aren't visible
[mod=:221mh31f]use 'code' for formatting - use 'ruby' for single lines etc
TIG[/mod:221mh31f] -
Might work for Mac?
Also
Any way to set file (or SU globally) to always save as v.8 (older version).Any way to know by looking at a file what version it is (without opening) on Mac?
-
Thanks Kaas. Worked a treat.
-
@pbacot said:
Might work for Mac?
yes, but...
it would be better to add a filter for those that are already v8...@unknownuser said:
Also
Any way to set file (or SU globally) to always save as v.8 (older version).yes, but...
not as easy as the first, and not on autosaves or backups...
you'll loose a lot of the new functionality written into later version skp files...
and you'll get a warning every time you reopen them [unless suppressed]...
easier to use v8 if you always want v8...@unknownuser said:
Any way to know by looking at a file what version it is (without opening) on Mac?
Not in 'Finder' unless you Tag all the skps using 'Automator' or 'Applescript'
I did do a mac 'save as version' plugin when this method first came out, but there was little interest...
john
-
I have a colleague who hasn't updated. I don't find I get any warnings when I open up a v8 file or anything that I use that affects the usefulness of the file. If I write "v8" in the name, it's meaningless--I always want to check if I saved the right version, when checking files on the server. It's probably not worth any extra headaches though, if there's no simple way. He'll update soon.
-
Maybe try this plugin and bind it to the save keypress?
http://sketchucation.com/forums/viewtopic.php?t=33441
Advertisement