ArcFM Engine Developer Guide
Automated Cleanup

Resource Center Home

Product Availability: ArcFM Desktop, ArcFM Engine

This sample requires that you have ArcGIS Engine installed.

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.

Developer Sample: Developer Samples\PX Tools\C# - Automated Cleanup

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.

Requires:

All of the files shown below are required for the project to compile successfully. Download these files from the ArcFM Solution Resource Center here.

File

Description

AutomatedCleanup.csproj

C# project containing the code to generate the automated cleanup tool.

CleanUp.cs
  (view code)

Class module that performs the clean up of designated nodes.

LicenseInitializer.cs
  (view code)

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

Program.cs
  (view code)

Class module that starts the cleanup.

The following files provide supporting information for the .cs file and are required for the project to compile successfully.

AssemblyInfo.cs

Supporting class module.

The following reference files are required for the project to compile successfully.

adodb

Esri.ArcGIS.DataSourcesGDB

Esri.ArcGIS.Geodatabase

Esri.ArcGIS.System

Esri.ArcGIS.Version

Miner.Interop.Framework

Miner.Interop.Process

Miner.Interop.System

System.Core

 

 

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com