TerminateCommand

The TerminateCommand event notifies the client when a command has been terminated. Only _Post is available.
A command terminates when it finishes (for example after the extrusion is created by the Extrude command), when another command is started while it is active, or when the user presses the Escape key. View commands only suspend the active command and do not terminate it.

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.

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.

Examples:

TerminateCommand_Post:

Register-InventorEvent -EventName TerminateCommand_Post -Action 'PostTerminateCommand'

function PostTerminateCommand($commandName) {
	#Write event code here
}