I am trying to detect when a feature has been copied and pasted. The OnCreateFeature event fires, but I cannot tell if the feature object was copy/pasted. Is there an event or other method to differentiate pasted features from newly created features?
EDIT: Two possible approaches I've thought of, but not sure of efficacy or downsides.
- In the OnCreateFeature event, I can read the 'new' feature's attributes, and compare them to the DefaultValue of each field. If every value is default, it's probably a new feature and not a copied feature.
- Get the geometry of the 'new' feature, and compare it to the geometry of every selected feature. If there is a match, the feature is a copy/paste.