Document.saveDataVersion Method
Parent Object:
DocumentDefined in namespace "adsk::core" and the header file is <Core/Application/Document.h>
Description
Creates a version on a dirty document by implictly saving it first. This method is not applicable when saving a document for the first time. In that case, you must use the Document.saveAs method. You can determine if a document has been saved by checking the value of the isSaved property.
Syntax
"document_var" is a variable referencing a Document object.returnValue = document_var.saveDataVersion(versionDescription) |
"document_var" is a variable referencing a Document object.
#include <Core/Application/Document.h>
returnValue = document_var->saveDataVersion(versionDescription);
|
Return Value
| boolean |
Returns true if saving the document with data version was successful. |
Parameters
| versionDescription |
string |
The description associated with the data version. |
Version
Introduced in version November 2025