FolderDialog.folder Property

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

Description

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

Syntax

"folderDialog_var" is a variable referencing a FolderDialog object.
# Get the value of the property.
propertyValue = folderDialog_var.folder
"folderDialog_var" Is a variable referencing a FolderDialog Object.
#include <Core/UserInterface/FolderDialog.h>

// Get the value of the property.
string propertyValue = folderDialog_var->folder();
"folderDialog_var" Is a variable referencing a FolderDialog Object.
// Get the value of the property.
propertyValue = folderDialog_var.folder;

Property Value

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

Samples

Name Description
File Dialog Sample

Demonstrates demonstrating how to pop up a file dialog and a folder dialog.

Before running: Run from Scripts and Add-Ins. This sample may open dialogs or require interactive choices; keep Fusion in the foreground.

Version

Introduced in version September 2017