RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Document

Document.GetDocumentVersion

Method
Description:
Gets the DocumentVersion that corresponds to a document.
Remarks:
This function can be combined with IsModified to see whether a document in memory is different from a version on disk. The documents are different if the document is modified or if the two DocumentVersions differ.
Syntax
Parameters
Parameter Type Description
doc Document The document whose DocumentVersion will be returned.
Return Value
Type Description
DocumentVersion The DocumentVersion corresponding to the given document.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null