CommandEvent.add Method
Parent Object: CommandEventDefined in namespace "adsk::core" and the header file is <Core/UserInterface/CommandEvent.h>
Description
Adds an event handler object to this event endpoint.
Syntax
"commandEvent_var" is a variable referencing a CommandEvent object.
|
Return Value
Type | Description |
boolean | Returns true if the handler was successfully added to the set of event handlers. |
Parameters
Name | Type | Description |
handler | CommandEventHandler | The client implemented CommandEventHandler to be called when this event is triggered. |
Samples
Name | Description |
Command Inputs API Sample | Creates a command dialog that demonstrates all of the available command inputs. To use the sample, create a new Python or C++ script and copy and paste this code, replacing the default code. You also need to unpack this zip file which contains a resource folder into the same folder where the source code file (.py or .cpp) is. |