Sample - Automated Cleanup

Version 3

    Versions: 9.3.1 - current

    Product Availability: ArcFM Desktop, ArcFM Engine

     

    This sample requires that you have ArcGIS Engine installed.

    This sample is not intended to run in an ArcFM Designer environment.

     

    This sample provides a console version of the ArcFM Orphaned Versions Cleanup tool. This tool cleans up any remaining versions left over after the associated session or design is deleted. The code specifies the Process Framework database and geodatabase connections used by the tool.

    AutomatedCleanup.png


    How to Implement:

    1. Open the solution and modify CleanUp.cs to include your Process Framework database and geodatabase connection information.
    2. Optionally, you can set the file name and path to the log file.
    3. Build the solution. This results in an executable: AutomatedCleanup.exe.


    How to Use:

    1. Double-click AutomatedCleanup.exe to run cleanup.
    2. Results are logged to the log file specified in the code.

    AutomatedCleaupLog.png  

     

    Requires:

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

    FileDescription
    AutomatedCleanup.csprojC# project containing the code to generate the automated cleanup tool.
    CleanUp.csClass module that performs the clean up of designated nodes.
    LicenseCheckout.cs

    Class module that checks out the necessary Esri and ArcFM licenses.

    Versions 9.3.1 - 10.0.3 SP1

    LicenseInitializer.cs

    Class module that checks out the necessary Esri and ArcFM licenses.

    Versions 10.1 and later

    LicenseInitializer.Designer.cs

    Class module that checks out the necessary Esri and ArcFM licenses.

    Versions 10.1 and later

    AssemblyInfo.csSupporting class module.