Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

We use an ArcSDE 10 database. We would like to log all events to export data (ArcObject) in ArcGIS Desktop 10.

Do you have an idea? a sample (ArcObject)?

Thank you

share|improve this question

1 Answer 1

You might try using IApplication.LockCustomization and pass it a class that you've written that implement ICustomizationFilter.

I think when the user right clicks on a featurelayer (or standalone table) and chooses Data>Export it will call ICustomzationFilter.OnCustomizationEvent, passing esriCEInvokeCommand. You should be able to cast eventCtx to ICommandItem and see what command was invoked. If it is the data export command you can log that somewhere.

I'm not sure how to determine if they actually click OK on the export dialog (and not cancel).

share|improve this answer
    
Thank for your quick feedback. I try this tomorrow. –  gistack.ca Apr 2 '12 at 2:11
    
There are many other ways remain to perform export data like VBA code, geoprocessing tools, python console, 3rd party addins. –  megadrofan Apr 2 '12 at 6:05
    
Perfect. I catch the export function with my extension but with geoprocessing tool, it's very complex to catch this.:( –  gistack.ca Apr 3 '12 at 12:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.