FolderDialog.showDialog Method

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

Description

Displays a modal dialog allowing the user to select a folder. The return value can be used to determine if the dialog was canceled without selecting a folder. the folder property can be used to get the selected folder.

Syntax

"folderDialog_var" is a variable referencing a FolderDialog object.
returnValue = folderDialog_var.showDialog()
"folderDialog_var" is a variable referencing a FolderDialog object.

#include <Core/UserInterface/FolderDialog.h>

returnValue = folderDialog_var->showDialog();

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 September 2017