Example #1
0
 /// <summary>
 /// Handler method for DocumentPrinted event.
 /// This method will dump all views printed and failed views(if any), total for all print.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 public void AppDocumentPrinted(object sender, Autodesk.Revit.DB.Events.DocumentPrintedEventArgs e)
 {
     // header information
     Trace.WriteLine(System.Environment.NewLine + "Document Print End: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
     //
     // Stop watch and calculate the cost time
     StopWatch(e.Document, false);
     //
     // Dump the events arguments
     DumpEventArguments(e);
 }
Example #2
0
 void doc_DocumentPrinted(object sender, Autodesk.Revit.DB.Events.DocumentPrintedEventArgs e)
 {
     DisplayEvent("Document printed");
 }