Using the Process Analyst > Process Analyst for Developers > Automation Model > ICommandSystem.Execute [Method]

ICommandSystem.Execute [Method]

Executes the specified command's action.

Defined As



[in] The unique ID of the command whose action is to be executed.

Execution Result

If this method succeeds, the return value will be Success. If the command is invalid, the return value will be InvalidArgument.


If the current Operator does not have the correct privilege, the command will not execute.

Calling Syntax

This example assumes there is a valid CommandSystem object as retrieved from a Process Analyst. (for example, VBA: ProcessAnalyst.CommandSystem).


Sub Example(CommandSystem As Object)
End Sub


FUNCTION Example(OBJECT hCommandSystem)
_ObjectCallMethod(hCommandSystem, "Execute", Citect_Command_AddPen);