TerminateCommand
The TerminateCommand event notifies the client when a command has been terminated.
Remarks:
There are several things that cause a command to be terminated. When a command finishes it will terminate. For example when you execute the Extrude command, after the extrusion has finished the command terminates. Starting another command while one command is active will cause the active command to terminate. An exception to this is the viewing commands. They just temporarily suspend the active command rather than terminate it. Pressing the escape key will terminate the current command.
EventNames:
TerminateCommand_Post
Parameters
Type |
Name |
Description |
|---|---|---|
String |
commandName |
The internal name of the command. This is the same name as the internal name of the ControlDefinition object associated with this command. |
Examples:
TerminateCommand_Post:
Register-InventorEvent -EventName TerminateCommand_Post -Action 'PostTerminateCommand'
function PostTerminateCommand($commandName) {
#Write event code here
}