Custom Commands
- Last UpdatedJul 18, 2023
- 1 minute read
Custom commands are defined in the Process Analyst, but needs to be implemented in Cicode. You define commands by using the ICommandSystem- > Create method, or by using the New button on the Toolbar property page.
To implement the command, you need to respond to the event CommandExecuted (and optionally UpdateCommand). Both of these events notify you of the ID of the command which needs to be handled.
Note: Do not call commands from Cicode which will require input from the operator such as Add Pen, Open View, Save View, etc because they will hang the Plant SCADA runtime until the user closes the dialog.