sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [REQ] Save all .skps in folder to earlier version

    Scheduled Pinned Locked Moved Plugins
    7 Posts 4 Posters 611 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Rich O BrienR Offline
      Rich O Brien Moderator
      last edited by

      Anyway to convert all models in a folder to v8 if they are saved as v12 aka 2016

      Download the free D'oh Book for SketchUp πŸ“–

      1 Reply Last reply Reply Quote 0
      • K Offline
        kaas
        last edited by

        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]

        1 Reply Last reply Reply Quote 0
        • pbacotP Offline
          pbacot
          last edited by

          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?

          MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

          1 Reply Last reply Reply Quote 0
          • Rich O BrienR Offline
            Rich O Brien Moderator
            last edited by

            Thanks Kaas. Worked a treat.

            Download the free D'oh Book for SketchUp πŸ“–

            1 Reply Last reply Reply Quote 0
            • D Offline
              driven
              last edited by

              @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

              learn from the mistakes of others, you may not live long enough to make them all yourself...

              1 Reply Last reply Reply Quote 0
              • pbacotP Offline
                pbacot
                last edited by

                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.

                MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

                1 Reply Last reply Reply Quote 0
                • K Offline
                  kaas
                  last edited by

                  Maybe try this plugin and bind it to the save keypress?
                  http://sketchucation.com/forums/viewtopic.php?t=33441

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement