FileDialog.showOpen Method

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

Description

Displays a modal open dialog, allowing the user to select one or more files. The return value can be used to determine if the dialog was canceled without selecting a file. The Filename and Filenames properties can be used to get the selected files.

Syntax

"fileDialog_var" is a variable referencing a FileDialog object.
returnValue = fileDialog_var.showOpen()
"fileDialog_var" is a variable referencing a FileDialog object.

#include <Core/UserInterface/FileDialog.h>

returnValue = fileDialog_var->showOpen();

Return Value

Type Description
DialogResults Returns an enum value indicating which button was clicked on the dialog.

Samples

Name Description
File Dialog Sample Demonstrating how to pop up a file dialog and a folder dialog.

Version

Introduced in version August 2014