Prevent changes in a Feature Design in an ArcGIS Pro plugin.

525
3
06-13-2020 01:20 AM
RobUdink1
New Contributor II

I am writing an ArcGIS Pro  Plugin to allow user to read into a feature class and to write it back into a proprietary file format. This is only possible (due to restrictions in the file format) when the design of the feature class in not altered by the user. 

Is it possible in a ArcGIS Pro .Net plugin to prevent that a user changes the design of a feature class in a file geodatabase? 

0 Kudos
3 Replies
RichRuh
Esri Regular Contributor

No, this isn't possible with the Pro SDK.  The best you could do is check to see if the feature class design meets your requirements.

--Rich

0 Kudos
RobUdink1
New Contributor II

thanks Rich for the clear answer. Checking that the design is still OK is indeed  the second best to prevent issues in the export.

0 Kudos
RobUdink1
New Contributor II

A good approach is to handle editing events as explained and cancel the edit operation. This is clearly explained in ArcGIS Pro SDK for .NET: Beginning Editing with Focus on Edit Operation - YouTube (see 27:00 min).

0 Kudos