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
-
Create a new rule.
-
Assign the new rule to the instrument item type.
-
Define the details of the external function.
-
Write the relevant C# or VB .NET code.
If the validation results have to show error messages, the Smart Instrumentation users will see the following (the inconsistency message originates from spiExtendederice.ErrDesc):