I think I've just hit a major limitation with how ArcMap (10) deals with class extensions on a Feature Class but I would first like to make sure I'm not missing something or seeing a bug.
I have a class extension registered with a feature class and the extension creates a unique identifier for every new feature that is created - it listens to the IObjectClassEvents.OnCreate event. This event is fired and handled every time a feature is created within an edit session using the 'Create Features' template. Similiarly, if I select one of more features, then Ctrl+c Ctrl+v the OnCreate event is fired for each feature and a new ID is assigned, rather than a copy of the old one - Great!
However, if I use the Advanced Editing - Copy Features tool no events are fired at all, even though new features are created. Perhaps this Copy Features tool uses a python script or something and therefore isn't managed in the same way? I don't know, but I thought it was the geodatabase which threw the OnCreate event so it shouldn't matter how the feature is created.
Can anyone tell me why none of the IObjectClassEvents events are fired in this case? I am considering looking into nasty workarounds (like a command add-in which listens for edit events when enabled) but 1) I'd really rather not and 2) I might end up with exactly the same problem.
Finally, I know there are other options than a class extension for what I'm doing but in order to fulfil all of the tool's requirements I can't use an editor extension.
Any help very much appreciated.