SelectionCommandInput.selection Method

Parent Object: SelectionCommandInput

Description

Returns the selection at the specified index.

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

Syntax

"selectionCommandInput_var" is a variable referencing a SelectionCommandInput object.
returnValue = selectionCommandInput_var.selection(index)
"selectionCommandInput_var" is a variable referencing a SelectionCommandInput object.

#include <Core/UserInterface/SelectionCommandInput.h>

returnValue = selectionCommandInput_var->selection(index);

Return Value

Type Description
Selection Returns the Selection at the specified index, or null on error.

Parameters

Name Type Description
index uinteger The index of the selection to return.

Version

Introduced in version August 2014