Select to view content in your preferred language

ArcGIS 10: Editor Extension Issues

552
1
05-10-2011 04:56 AM
Charles__Jamie_Phillips
Occasional Contributor
I am new to writing editor extensions, but I am having an issue.  I have written a basic extension that when the OnCreateFeature and OnChangeFeature events are fired, I populate some audit fields.  However, when the editors use the Auto Complete Polygon Tool, the OnCreateFeature event is not fired, just the OnFinishSketch.  Other sketching tools fire the OnCreateFeature from what I have determined.  Is this a bug?  If not, how do I get access to the feature in the OnFinishSketch event to do the audit fields?

Thanks,
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor
Unfortunately, this is not a bug. It's been an issue since the ArcGIS 8.x days. I was able to work around this problem by checking the current task in the EditorEvents_OnSketchFinished sub:

  If LCase(m_pEditor.CurrentTask.Name) = "auto-complete polygon" Then
0 Kudos