Force sketchup ctrl+s/autosave to sketchup 8?
-
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? -
More details from you, might produce more details from us...
-
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. -
Newer SketchUp's since v2014 have API methods which should do what you want...
http://www.sketchup.com/intl/en/developer/docs/ourdoc/model#saveWrite 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
-
Wow I just added a ctrl+shift+s shortcut in preferences like you said and it works!
Thanks a lot!
Advertisement