Common Application Framework Addins
- Last UpdatedJan 24, 2025
- 1 minute read
CAF addins provide the .NET programmer with access to .NET interfaces or other systems using the IAddin interface. Addins are loaded when the AVEVA module is launched. CAF addins can be used to subscribe to application events and load commands to the GUI.
Each CAF addin is listed as an XML addin configuration file which lists all of the addins that are loaded when the module is launched.
XML Addin Configuration File
The example displays an xml addin configuration file named in the format <module>Addins.xml.
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfString xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<string>MyAddin</string>
</ArrayOfString>
The XML addin configuration file works with the CAF_ADDINS_PATH and CAF_UIC_PATH environment variables.
|
CAF_ADDINS_PATH |
Indicates the location of the addins. |
|
CAF_UIC_PATH |
Indicates the location of files where the GUI is defined. |
The example displays the processes used to create and implement a CAF addin.

IAddin Interface File
The example displays an IAddin interface file.
public class MyAddin : Aveva.ApplicationFramework.IAddin
{
public MyAddin()
{
}
void Aveva.ApplicationFramework.IAddin.Start(ServiceManager
serviceManager)
{
CommandManager cm =
serviceManager.GetService(typeof(CommandManager));
cm.Commands.Add(new MyCommand());
}
Detailed information about CAF addins is available, refer to How to Write a Common Application Framework Addin and Environment Variables for .NET Customization for further information.