> Script Details
report inappropriate content
Sep 19 2008
Status of work
ESRI Attribution and Licensing Agreement
ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.
This ArcMap extension enables feature classes and tables to track user edits at the feature/record level.
1. .NET Framework 3.x
2. ArcGIS Desktop 9.3
3. .NET Support for ArcGIS Desktop
1. Add the following fields to each feature class and table.
a. EDITOR_NAME - Field Type Text.
b. EDIT_DATE Field Type Date
2. Install Edit Tracking Extension
In the directory where the extension is installed (typically C:\Program Files\ESRI\Editor Tracker Extension) there is a configuration file named EditorTracker.config. This file allows you to alter the behavior of the extension. These setting are
1. EditorNameField this text setting identifies the field to store the editor/user name. The default value is EDITOR_NAME. If the field name changes update this setting without re-compiling the application.
2. EditDateField this text setting identifies the field to store the date. The default value is EDIT_DATE. If the field name changes update this setting without re-compiling the application.
3. TrackDatabaseUser this Boolean setting enables the extension to use the ArcSDE connection information to obtain the username or the Operating System login name. If the value is set to True the database connection information is used. If the value is set to False the OS account information is used.
4. DateAndTime this Boolean setting enables the extension to store just the date format (12/10/2008) or the date and time (12/10/2008 10:45:11 AM) in the EditDateField. Setting the value to True stores the date and time. Setting the value to False stores just the date.
*** If a decision is made to store the date and time some unexpected data conflicts may occur when reconciling versions. Since the format used will be similar to 12/10/2008 10:45:11 AM the difference between the minutes/seconds stored in the date field may contribute to conflicts.