External Validation Function Example - Intergraph Smart Instrumentation - Customization & Programming - Intergraph

Intergraph Smart Instrumentation Programmer's Guide

Language
English
Product
Intergraph Smart Instrumentation
Search by Category
Customization & Programming
Smart Instrumentation Version
2018 (12.0)

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 Smart Instrumentation folder > Examples > SPIExternalExample.sln

  1. Create a new rule.

    01extrnl_loop_vald

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

    02extrnl_loop_vald

  3. Define the details of the external function.

    03extrnl_loop_vald

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

    09extrnl_loop_vald

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

04extrnl_loop_vald