DrawingDocument.saveDataVersion Method

Parent Object: DrawingDocument
Defined in namespace "adsk::drawing" and the header file is <Drawing/Drawing/DrawingDocument.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

"drawingDocument_var" is a variable referencing a DrawingDocument object.
returnValue = drawingDocument_var.saveDataVersion(versionDescription)
"drawingDocument_var" is a variable referencing a DrawingDocument object.

#include <Drawing/Drawing/DrawingDocument.h>

returnValue = drawingDocument_var->saveDataVersion(versionDescription);

Return Value

Type Description
boolean Returns true if saving the document with data version was successful.

Parameters

Name Type Description
versionDescription string The description associated with the data version.

Version

Introduced in version November 2025