How do I listen for parcel fabric edit events?

2657
3
Jump to solution
01-16-2014 04:15 AM
ConorBarber1
New Contributor II
I have an editor extension upon which I would like to listen for events when a parcel fabric attribute table is edited. I have implemented IEditEvents for this purpose:

void Events_OnStartEditing()         {              //Since features of shapefiles, coverages, and so on, cannot be validated, ignore wiring              //events for them.             if (ArcMap.Editor.EditWorkspace.Type !=                 esriWorkspaceType.esriFileSystemWorkspace)             {                 //Wire OnCreateFeature edit event.                 Events.OnCreateFeature += new IEditEvents_OnCreateFeatureEventHandler                     (Events_OnCreateFeature);                 //Wire onChangeFeature edit event.                 Events.OnChangeFeature += new IEditEvents_OnChangeFeatureEventHandler                     (Events_OnChangeFeature);              }                }


However, OnChangeFeature does not fire when editing the attribute table of a parcel fabric. How can I listen for parcel fabric editing events?
0 Kudos
1 Solution

Accepted Solutions
ConorBarber1
New Contributor II
I have figured out the answer to this and I thought I would share. 

You must listen to the IEditEvents2_BeforeStopOperation() event. For the full walkthrough of the workaround, see my post on GIS.Stackexchange:

http://gis.stackexchange.com/questions/83167/why-is-my-onchangefeature-event-not-firing-in-my-parcel...

View solution in original post

0 Kudos
3 Replies
ConorBarber1
New Contributor II
bumping as there is very little ESRI documentation on parcel fabrics and arcobjects... I'd like to at least have an idea of how edits are saved to the parcel fabric so I can get at the event that is firing here.
0 Kudos
ConorBarber1
New Contributor II
I have figured out the answer to this and I thought I would share. 

You must listen to the IEditEvents2_BeforeStopOperation() event. For the full walkthrough of the workaround, see my post on GIS.Stackexchange:

http://gis.stackexchange.com/questions/83167/why-is-my-onchangefeature-event-not-firing-in-my-parcel...
0 Kudos
TimHodson
Esri Contributor

For an example of capturing and listening for parcel editor events, please see code for attribute assistant, as demo'd at the 2/26/2015 land records meetup. The code is published on GitHub here: http://bit.ly/1FXwJct

The attribute assistant methods use editor events. The code added to support fabrics, uses objects class change events from the geodatabase fabric tables, and re-broadcasts these as editor events.

-Tim

0 Kudos