Esri / local-government-desktop-addins

A series of ArcGIS Desktop Add-ins used in the ArcGIS for Local Government editing maps.
Apache License 2.0
61 stars 56 forks source link

Attribute Assistant + Split Line at Point construction tool error #220

Closed MikeMillerGIS closed 6 years ago

MikeMillerGIS commented 7 years ago

When using a AA rule that will abort the edit operation, the split line at point tool can raise an error when calling IFeature.store. I cannot monitor the Edit Event and look for an aborted edit operation as this is being fired about the error is being reported on IFeature.Store. I can use a try catch to capture the error on store and present a message like this:

image

clareprice commented 6 years ago

@MikeMillerGIS For testing and verification, what are a few examples of AA methods/rules that would end the edit operation?

MikeMillerGIS commented 6 years ago

What about minimun length, such as trying to split a main and creating a small segment

previnWong commented 6 years ago

Would/should the following workflow cause AA to abort an edit? I set the Value Info to a field that does not exist.

1) Open AA dynamic value table, change the rule for Control Valve 2) set the rule Intersect_Feature, the value info to DIAMETER99 to ensure on an invalid rule 3) Place on Control Valve on a Main 4) in Water Editing Toolbar, click the tool Split line at selected points 5) No error message is displayed. Diameter field in Control valve remains null

MikeMillerGIS commented 6 years ago

Should just add an entry to the log file, does not abort edit.

Sent from my Verizon 4G LTE Droid

clareprice commented 6 years ago

Verified. Closing.