RVTDocs.com
Namespace: Autodesk.Revit.DB

PrintManager

Class
Description:
The PrintManager object is used to configure the global print settings.
Remarks:
Global print settings include PrintToFile, CombinedFile, PrintToFileName, PrintRange, CopyNumber, PrintOrderReverse, Collate. Once PrintManager is acquired from a document, changes of its global print setting properties are not automatically applied toward the global print setting. Should the local setting be used, the user needs to call the Apply method. If the user calls SubmitPrint methods, not only that printing will use the current state of properties of the (local) print manager, but the setting will also be applied to the global settings.
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.APIObject
    Autodesk.Revit.DB.PrintManager
Syntax
public class PrintManager : APIObject
Examples
private void CreateAndPrintViewSet(Document document, ViewSet viewSet)
{
    PrintManager printManager = document.PrintManager;
    printManager.PrintRange = PrintRange.Select;
    ViewSheetSetting viewSheetSetting = printManager.ViewSheetSetting;
    viewSheetSetting.CurrentViewSheetSet.Views = viewSet;
    viewSheetSetting.SaveAs("MyViewSet");
    printManager.CombinedFile = true;
    printManager.SubmitPrint();
}
PrintManager Class Members:
Name Description Inherited From
Collate Indicates whether to collate of the current print.
CombinedFile Indicates whether to combine multiple selected views/sheets into a single file.
CopyNumber The copy number.
IsReadOnly Identifies if the object is read-only or modifiable. (Inherited from APIObject ) APIObject
IsVirtual The virtual type in Autodesk Revit.
PaperSizes Get all print sizes of current printer.
PaperSources Get all print sources of current printer.
PrinterName The name of the current printer.
PrintOrderReverse Indicates whether to reverse the print order of the current print.
PrintRange The print range.
PrintSetup The PrintSetup which manages the print settings of current document.
PrintToFile Indicates whether to print to file.
PrintToFileName The file name when printing to file.
ViewSheetSetting The ViewSheetSetting which manages the view/sheet set information of current document, and you can change the default view/sheet set for current project.
Name Description Inherited From
Apply Apply the local print settings to global for all documents.
Dispose Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) APIObject
Equals Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
GetHashCode Serves as the default hash function. (Inherited from Object ) Object
GetType Gets the Type of the current instance. (Inherited from Object ) Object
SelectNewPrintDriver Select a new printer.
SubmitPrint() Print the views and sheets defined in the current local PrintManager settings.
SubmitPrint(View) Print a view with the current PrintManager settings.
ToString Returns a string that represents the current object. (Inherited from Object ) Object