Skip to content

File Versions

Each part (.sprt) and assembly (.sasm) records the SpryCAD version that saved it and the add-ins that were loaded, with the feature types of each add-in that the file uses. Files saved by earlier versions don't have this record. They still open.

To see the record before opening a file, select it in the Open dialog: the preview lists Made with and the Add-ins whose features it uses. This works for files from a newer SpryCAD too.

Opening a File

The file When it opens
Saved by a newer SpryCAD in a newer file format, or with data this version can't read It doesn't open. The message names both versions, for example "Made with SpryCAD 0.0.7; this is 0.0.6. Update SpryCAD to open it."
Saved by a newer SpryCAD release, with nothing this version can't read It opens. The Problems list says which version made it.
Uses features of an add-in that isn't loaded It opens. Those features are kept as they are but don't rebuild, and the Problems list names the add-in and its version.
Uses features of an add-in, saved with a newer version than the one loaded It opens. The Problems list names both versions.
Saved in the ZIP format of SpryCAD before 0.0.2 It doesn't open. Open and save it in SpryCAD 0.0.1 to convert it.

Reading the Versions without SpryCAD

A SpryCAD file is an SQLite database, so any SQLite tool can read it (the sqlite3 command-line program, DB Browser for SQLite, or Python's sqlite3 module). The record is in the Manifest table:

sqlite3 bracket.sprt "SELECT Key, Value FROM Manifest WHERE Key IN ('SpryCadVersion', 'SchemaVersion', 'AddIns')"
Key Value
SpryCadVersion The SpryCAD version that saved the file, such as 0.0.6 or 0.0.6-dev.3+aeb382f (a development build and its commit).
SchemaVersion The file format version. SpryCAD also keeps it in the database header (PRAGMA user_version).
AddIns JSON: one entry per add-in, with id, name, version and features (the add-in's feature types that the file uses). An add-in whose features the file uses stays listed after a save without it.

The AppVersion key in older files is always 1.0.0.0 and doesn't identify the SpryCAD version.