ArcFM Desktop Overview > ArcFM Desktop Developer Samples > Validation Rule (C#) |
Product Availability: ArcFM Desktop, ArcFM Engine
This sample class validation rule ensures that the rated kVA of a transformer is equal to the total kVA of all the related transformer units.
Developer Sample: Developer Samples\Validation Rules\C# - Validation Rules
How to Implement:
How to Configure:
How to Use:
Additional Information:
Requires:
All of the files shown below are required for the solution to build successfully. Download these files from the ArcFM Solution Resource Center here.
File
Description
Miner.Samples.ValidationRules.csproj
C# project containing code to generate a custom validation rule.
RatedKVARule.cs
(view code)Defines how the validation rule behaves.
QASampleUtilities.cs
Supporting class module
AssemblyInfo.cs
Supporting class module
The following reference files are required for the project to compile successfully.
Esri.ArcGIS.Geodatabase
Esri.ArcGIS.System
log4net
Miner.Interop.Framework
Miner.Interop.Geodatabase
Miner.System
stdole
System
System.Windows.Forms
Key Interfaces: IMMValidationRule, IMMExtObject