ArcFM Engine Developer Guide
Validation Rules

Version: 10.2.1c and 10.2.1c SP3

Resource Center Home

This section will show how you can create and enable your own validation rules for more tailored QA/QC of your data.

In ArcFM, you can enable validation rules which will be used by the QA/QC tool to determine the validity of features and objects as well as their related objects. This ArcFM QA/QC component provides users with the ability to define custom validation rules and configure the QA/QC tool to use only specific rules. Users may validate both features and objects from multiple sources, such as selection set, design, and locator results. The QA/QC tool also allows you to validate objects and features between two versions in an Oracle database.

Invalid objects and features are displayed individually along with their error messages or warnings on the QA/QC tab.

Steps for creating a validation rule:

  1. Add references to Miner.Interop.Framework, and Miner.Interop.Geodatabase to the project
  2. Add a Guid Attribute with a unique value to the validation rule class
  3. Add a Component Attribute to the class with a ComCategory.MMValidationRule argument
  4. Extend IMMExtObject and IMMValidationRule
  5. Implement all interfaces

    IMMExtObject::Name: Return the name to be displayed in the ArcFM properties dialog

    IMMExtObject::Enabled: Cast the argument to and IObjectClass and return true if the validation rule should be enabled for the supplied object class

    IMMExtObject::Bitmap: Return null, or a bitmap to be displayed in the QAQC Tab of the Attribute Editor

    IMMValidationRule::IsValid(): Return a D8List containing MMValidationErrorClass objects for each error detected by the validation rule


Interfaces:
    IMMValidationRule
    IMMExtObject

Component Category:
    MMValidationRules

Developer Samples
    C# Developer Sample
    VB.NET Developer Sample

ArcMap may crash if a large number (approximately 9,000) of invalid features are found using the QA/QC tool and custom QA validation rules in a single ArcMap session. To avoid this problem, do not use the BitmapID property on the IMMValidationError returned by the IMMValidationRule::IsValid method.

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com