DocumentReference.getLatestVersion Method

Parent Object: DocumentReference
Defined in namespace "adsk::core" and the header file is <Core/Application/DocumentReference.h>

Description

Updates the reference to use the latest version. This is only useful when the isOutOfDate property is true.

Syntax

"documentReference_var" is a variable referencing a DocumentReference object.
returnValue = documentReference_var.getLatestVersion()
"documentReference_var" is a variable referencing a DocumentReference object.

#include <Core/Application/DocumentReference.h>

returnValue = documentReference_var->getLatestVersion();

Return Value

Type Description
boolean Returns true if getting the latest version was successful.

Version

Introduced in version June 2017