CloudFileDialog.dataFile Property

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

Description

Gets the DataFile selected by the user in the dialog. This property is used after the ShowOpen method has been called to retrieve the filename specified by the user.

If ShowOpen was used and isMultiSelectEnabled is true, then this property will only display the first DataFile selected and the dataFiles property should be used instead to retrieved the full list. If ShowSave was used, then only a single DataFile is ever returned.

Syntax

"cloudFileDialog_var" is a variable referencing a CloudFileDialog object.

# Get the value of the property.
propertyValue = cloudFileDialog_var.dataFile
"cloudFileDialog_var" is a variable referencing a CloudFileDialog object.
#include <Core/UserInterface/CloudFileDialog.h>

// Get the value of the property.
Ptr<DataFile> propertyValue = cloudFileDialog_var->dataFile();

Property Value

This is a read only property whose value is a DataFile.

Samples

Name Description
File Open Sample Demonstrates how to open files using the Open API and OpenUsingContext API. The sample shows how to open a file at the tip (latest version) and how to open historical versions of a file. It uses the Open API to open files at tip and iterate through historical versions, and the OpenUsingContext API to open file using FileOpenContext .

Version

Introduced in version October 2022