SnakePIN Task


This sample is a custom edit task that creates parcel pin values for parcel features.

The task creates PIN values based on the intersection of an edit sketch and an underlying parcel layer. A base PIN value and an increment value may be entered.

This task is designed to work with any polygon data that has a numeric field to accept the PIN value. Due to the numerous ways organizations represent parcel PINs however, it is difficult to produce a generic tool that would work for all. Thus this task serves as a sample only.

How to use:
  1. Register the dll.
  2. Use the category manager to add the dll to the 'ESRI Edit Tasks" component category.
  3. Add some parcel data to ArcMap
  4. Start editing and select the SnakePIN task.
  5. Use the sketch tool to create a sketch over some parcels.
  6. In the PIN dialog, select the PIN field. Enter a start PIN and an increment.
  7. "Include ends of sketch" will include the polys within the start and end points of the sketch. Check if necessary.

ArcMap: Edit Task

Requires: Edit Session, Polygon data with numeric field.

Minimum ArcGIS Version Required: 8.3

Difficulty: Intermediate

Visual Basic
File Description
SnakePIN.vbp The project file for the custom edit task.
SnakePINTask.cls VB class file containing IEditTask implementation.
frmSnakePIN.frm UI and main code
RegistryObject.cls VB helper class for registry.
Globals.bas VB helper module.
SnakePIN.dll The compiled project.

Key CoClasses: Editor, SpatialFilter, GeometryBag
Key Interfaces: IEditTask, IEditor, IEditSketch, ITopologicalOperator, IGeometryCollection, ISpatialFilter, IPointCollection, IPolyline