Skip to content

Instantly share code, notes, and snippets.

@alexschreyer
Created April 11, 2024 15:53
Show Gist options
  • Save alexschreyer/ca3dfa9c319a5f6ae6fb2265ce1a861f to your computer and use it in GitHub Desktop.
Save alexschreyer/ca3dfa9c319a5f6ae6fb2265ce1a861f to your computer and use it in GitHub Desktop.
=begin
Available version constants:
Layout::Document::VERSION_1
Layout::Document::VERSION_2
Layout::Document::VERSION_3
Layout::Document::VERSION_2013
Layout::Document::VERSION_2014
Layout::Document::VERSION_2015
Layout::Document::VERSION_2016
Layout::Document::VERSION_2017
Layout::Document::VERSION_2018
Layout::Document::VERSION_2019
Layout::Document::VERSION_2020
Layout::Document::VERSION_2021
Layout::Document::VERSION_2022
Layout::Document::VERSION_2023
=end
# Set the path to the LayOut file
path = "C:/path/to/document.layout"
# Grab a handle to an existing LayOut document
doc = Layout::Document.open( path )
# Save to the older version
status = doc.save( path , Layout::Document::VERSION_2017 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment