Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Loading and Registering a Command

  • Last UpdatedJan 28, 2025
  • 1 minute read

Once a command has been defined (and added to pml.index) it can be loaded using the PML LOAD syntax as follows:

PML LOAD COMMAND !!cmdbutton

This creates the command Global instance. The command can then be registered with the Command Manager as follows:

!!cmdbutton.register()

The key set in the constructor is !this.key and is used to uniquely identify the command. Once registered, it will be available in the application's Customize tool below this key in the Command window, refer to .NET Customization for further information.

A function !!loadUserCommands() in %PMLLIB% is called when entering Model. User PML commands can be loaded and registered in this function. Add-in applications will typically load commands within the application itself in initialization callbacks.

Related Links
TitleResults for “How to create a CRG?”Also Available in