ReadFileVersion

Returns the file version of the current document.  Use this function to determine which version of Rhino last saved the document. Note, this function will not return values from referenced or merged files.

Syntax

rhinoscriptsyntax.ReadFileVersion()

rhinoscript.document.ReadFileVersion()

Parameters

None.

Returns

Number

The file version of the document if successful.  Note, values less than zero indicate that the current document has not been read (from disk).

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

print "ReadFileVersion =", rs.ReadFileVersion()

Also See

DocumentName

DocumentPath