External Validation Function Example - Intergraph Smart Instrumentation - Reference - Intergraph

SmartPlant Instrumentation Programmer's Guide

Language
English
Product
Intergraph Smart Instrumentation
Search by Category
Reference
Smart Instrumentation Version
2016 SP1 (11.0.1)

The following is an example that shows how to define a rule that validates loop uniqueness not just on the level of the current unit but also on the plant level including all the cables and panels.

You can find the example solution in your SmartPlant Instrumentation folder > Examples > SPIExternalExample.sln

  1. Create a new rule.

  2. Assign the new rule to the instrument item type.

  3. Define the details of the external function.

  4. Write the relevant C# or VB .NET code.

If the validation results have to show error messages, the SmartPlant Instrumentation users will see the following (the inconsistency message originates from spiExtendederice.ErrDesc):