Get editing events

331
1
02-10-2022 06:25 AM
mody_buchbinder
Occasional Contributor III

We are trying to replace the old class extension from ArcObjects.

The Pro way is to get the layer events (create/change).

I found this post: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-fire-up-editing-event/m-p/1082368#M693...

The problem is that the pro events is by layer. If I subscribe when I open the document to all layers that should be handled the user can add a layer afterword.

Do you think it make sense to get the LayersAdded event and to use it to subscribe any new layer to the editing events?

Thanks 

0 Kudos
1 Reply
sjones_esriau
Esri Contributor

Hi Mody,

If your users are in a dynamic map environment where they are adding and removing layers that you care about then yes you will have to subscribe to the appropriate layer add/remove events so you can then subscribe to changes on those layers (tables).

If you don't need to respond to the layer changes at the time of the change you can also look into the editcompleted event which will list the layers/features that changed during the edit.

0 Kudos