CommandInputs.itemById Method

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

Description

Returns the command input that has the specified ID.

Syntax

"commandInputs_var" is a variable referencing a CommandInputs object.
returnValue = commandInputs_var.itemById(id)
"commandInputs_var" is a variable referencing a CommandInputs object.

#include <Core/UserInterface/CommandInputs.h>

returnValue = commandInputs_var->itemById(id);

Return Value

Type Description
CommandInput Returns the specified command input or null if the input ID doesn't match an existing command input.

Parameters

Name Type Description
id string The unique ID of the command input you want to get.

Version

Introduced in version August 2014