Required class attributes - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

The example module class inherits all the attributes from the SPEModuleBase class. When you create your custom module, you must declare certain exports on your class attributes. These are used by MEF to detect your module automatically when it is placed inside the Module folder so that it appears in the SmartPlant Foundation Dashboard, and includes the following attributes:

  • ModuleExport – Exports your module class type.

  • Export – Indicates to the underlying SmartPlant Enterprise Control Panel (SPECP) framework that your module is exporting ISPEHomeModule.

The following image is an example of a module class and its attributes.