Skip to content

Instantly share code, notes, and snippets.

@alexschreyer
Last active April 11, 2024 00:41
Show Gist options
  • Save alexschreyer/0df7b3d06f6067a1371ed1e21286f7c5 to your computer and use it in GitHub Desktop.
Save alexschreyer/0df7b3d06f6067a1371ed1e21286f7c5 to your computer and use it in GitHub Desktop.
=begin
Available version constants:
Sketchup::Model::VERSION_3
Sketchup::Model::VERSION_4
Sketchup::Model::VERSION_5
Sketchup::Model::VERSION_6
Sketchup::Model::VERSION_7
Sketchup::Model::VERSION_8
Sketchup::Model::VERSION_2013
Sketchup::Model::VERSION_2014
Sketchup::Model::VERSION_2015
Sketchup::Model::VERSION_2016
Sketchup::Model::VERSION_2017
Sketchup::Model::VERSION_2018
Sketchup::Model::VERSION_2019
Sketchup::Model::VERSION_2020
Sketchup::Model::VERSION_2021
=end
# Save the currently open file as a 2017 version file
status = Sketchup.active_model.save( "D:/test.skp" , Sketchup::Model::VERSION_2017 )
# Save a COPY of the currently open file as a 2017 version file
status = Sketchup.active_model.save_copy( "D:/test.skp" , Sketchup::Model::VERSION_2017 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment