RowChangedEventArgs

1622
11
Jump to solution
06-12-2018 10:01 AM
JeffMatson
Occasional Contributor III

In ArcPro 2.1 there was an Operation object available in the args:

private void OnRowChanged(ArcGIS.Desktop.Editing.Events.RowChangedEventArgs args)
{
   QueuedTask.Run(() =>
   {
       EditOperation eo = args.Operation;

//blah blah blah
//more awesome code
//blah blah blah

});

}

I don't see it any longer in ArcPro 2.2 - anyone know if this is coming back?

Tags (1)
0 Kudos
11 Replies
by Anonymous User
Not applicable

Hey Stuart,

The edit operation that is passed through to the row events is the currently executing edit operation either from your custom tools or Pro’s core edit tools. In the row events you're simply adding additional edit operation methods to the current edit operation which is being executed outside the event. The 'regular' edit operation rules apply in that you cant create/execute edit operations within the row events, because one is already running, hence the exception.

StuartBricker
New Contributor III

That makes perfect sense. Simply removing the .Execute() line solves the problem. As always, thanks for your prompt and helpful response.

0 Kudos