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

SmartPlant Instrumentation Programmer's Guide

PPMProductFamily
Engineering and Schematics
PPMProduct
Intergraph Smart Instrumentation
PPMCategory
Reference
Version_SPI_custom
2016 SP1 (11.0.1)

The external validation function enables you to extend the core validation of SmartPlant Instrumentation. You can do this by writing your own logic code using C# or VB .NET and attaching it to SmartPlant Instrumentation Rule Manager using your Assembly Project signature.

The rule engine functions according to the Boolean value returned by the CustomValidation function. In case of 'False', the rule engine rejects the modifications made by SmartPlant Instrumentation users. In case of 'True', the rule engine accepts the user modifications.

Syntax

bool spiExtendedService.CustomValidation(string AttrName,

string AttrValue,

bool AttrModified,

string ItemType,

string PrimaryAttr,

string PrimaryValue,

long LowerPBSID)

Argument

Type

Description

AttrName

string

The attribute name that was selected in the rule definition.

AttrValue

string

The value of the attribute name that was selected in the rule definition.

AttrModified

boolean

Indicates if the selected attribute has been modified by a SmartPlant Instrumentation user.

Item Type

string

Represents the main SmartPlant Instrumentation object that triggers the Rule engine.

PrimaryAttr

string

Represents the primary attribute name.

PrimaryValue

string

Represents the primary attribute value.

LowerPBSID

long

Represents the lowest level plant hierarchy item <Unit ID>

Argument

Type

Return Value

boolean