http://images.businessweek.com/ss/05/06/sharing/image/sharing.jpgPPT_LOGO_4b
‹#›
Autodesk Confidential Information
Developer Days Online 
The Wine – New Events
EventsMonitor Sample
Use DocumentSaving for this demo
A cancellable event that occurs just before Revit saves the file. Useful to perform certain checks (are CAD standards being followed?) and then allow save or abort it with an error message
1.Subscribe to the generic handler app_eventsHandlerMethod
m_app.DocumentSaving += new EventHandler<DocumentSavingEventArgs>(app_eventsHandlerMethod);
2.Unsubscribe from the event
m_app.DocumentSaving -= app_eventsHandlerMethod;
3.When the event is triggered
public void app_eventsHandlerMethod(Object obj, EventArgs args)
EventsMonitor Sample (this was modified from SDK sample). Will look specifically into Doc saving event.