UserInterface.commandStarting Event

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

Description

The commandStarting event fires when a request for a command to be executed has been received but before the command is executed. Through this event, it's possible to cancel the command from being executed.

Syntax

-------- Import ---------
# Import fusion360utils folder, which includes event_utils.py.
from ...lib import fusion360utils as futil

-------- Global variables ---------
# Global variable used to maintain a reference to all event handlers.
local_handlers = []

-------- Global variables ---------
# Global variable used to maintain a reference to all event handlers.
handlers = []

--------- Required include files. ---------
#include <Core/UserInterface/UserInterface.h>

Property Value

This is an event property that returns an ApplicationCommandEvent.

Version

Introduced in version November 2015