Sample - Check Phase

Version 3

    Versions: 10.2.1a - current

    Product Availability: ArcFM with Feeder Manager 2.0

     

    This project sample illustrates how to write an autoupdater (AU) that uses FeederInfoProvider.

    In Feeder Manager 1, you could fire AUs that relied on the FeederID or FeederInfo fields after the Update Feeder ID AU. With the enhancements of Feeder Manager 2.0, this process has changed. This sample demonstrates how to create an AU that records feature updates, then waits for a stop operation event before running desired logic on features.


    How to Implement:

    1. Open CheckPhase.sln and connect any broken references.      
    2. Build the solution.
    3. Ensure the CheckPhase.dll has been built into the project's \bin\Debug folder.
    4. Copy the CheckPhase.dll into your ArcFM Solution\Bin directory, typically C:\Program Files (x86)\Miner and Miner\ArcFM Solution\Bin.
    5. Register CheckPhase.dll using the RegX.exe utility provided with ArcFM. The DLL should be registered with the /codebase or /c flag set.
      regx.png
    6. In ArcCatalog, assign the CheckPhaseSample_FeatureListener AU to the On Feature Update event (optionally to the On Create event, as well).
    7. In ArcMap, edit a feature with the AU you assigned in the previous step. Set the phase to an incorrect value.
    8. Click Update to get an error message that prevents the edit from being saved.
      error.png


    Requires:

    All of the files shown below are required for the project to build successfully.

     

    FileDescription
    CheckPhase.slnVisual Studio Solution file.
    CheckPhase.csprojC# project file.
    FeatureListener.csClass module for the autoupdater.
    PhaseChecker.csClass module that handles OnStopOperation.