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

    Force sketchup ctrl+s/autosave to sketchup 8?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 2 Posters 739 Views 2 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.
    • M Offline
      mazurek
      last edited by

      Hi, I am experimenting with linking grasshopper to sketchup (I have found a plugin in which ctrl+s in sketchup automatically imports it to grasshopper with updated version), and I need to have sketchup 8 file all the time. I would like to work in newer sketchup program though to have access to many plugins.

      I did not find any option to force this on sketchup,
      any help? ❓

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        More details from you, might produce more details from us...

        TIG

        1 Reply Last reply Reply Quote 0
        • M Offline
          mazurek
          last edited by

          I just need a way to have a save to sketchup 8 with the same name (overwrite) as button or shortcut.

          It would save me a lot of time as the purpose of this is to have it imported to grasshopper and then send to Robot for structural analysis.

          The way the grasshopper script works is that it listens for any file update under specific name. My rhinoceros3d though cannot read newer versions of sketchup files so I need to save it as sketchup 8.
          Now I am doing it manually by selecting save as and picking version.
          But when doing many iterations (when I want to see how changes to sketchup model show up in Robot) it takes a lot of time.

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            Newer SketchUp's since v2014 have API methods which should do what you want...
            http://www.sketchup.com/intl/en/developer/docs/ourdoc/model#save

            Write this few-liner into a V8saver.rb file in your Plugins folder [use a plain-text editor like Notepad++].
            Since on a restart/auto-load it adds an Extensions submenu item it's readily shortcut-able...

            require('sketchup')
            module Mazurek
              module V8saver
                ### menu
                unless file_loaded?(self.to_s)
                  UI.menu("Plugins").add_item("V8saver"){ self.run() }
            		### choose the name you want...
                  file_loaded(self.to_s)
                end#unless
                ### code
                def self.run()
                  model = Sketchup.active_model
                  path = model.path
                  if path && ! path.empty?
                    model.save(path, Sketchup;;Model;;VERSION_8)
                  end#if
                end#def
            	 ###
              end#module
            end#module
            

            TIG

            1 Reply Last reply Reply Quote 0
            • M Offline
              mazurek
              last edited by

              Wow I just added a ctrl+shift+s shortcut in preferences like you said and it works!
              Thanks a lot!

              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