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)