2024 Class
Changes 0
C

PrintManager

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
public class PrintManager : APIObject
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();
}
Name Return Type Description Inherited From
M Apply() None Apply the local print settings to global for all documents.
M SelectNewPrintDriver(String) None Select a new printer.
M SubmitPrint() bool Print the views and sheets defined in the current local PrintManager settings.
M SubmitPrint(View) bool Print a view with the current PrintManager settings.
M Dispose() None Causes the object to release immediately any resources it may be utilizing. APIObject
Name Return Type Description Inherited From
P Collate bool Indicates whether to collate of the current print.
P CombinedFile bool Indicates whether to combine multiple selected views/sheets into a single file.
P CopyNumber int The copy number.
P IsVirtual VirtualPrinterType The virtual type in Autodesk Revit.
P PaperSizes PaperSizeSet Get all print sizes of current printer.
P PaperSources PaperSourceSet Get all print sources of current printer.
P PrinterName string The name of the current printer.
P PrintOrderReverse bool Indicates whether to reverse the print order of the current print.
P PrintRange PrintRange The print range.
P PrintSetup PrintSetup The PrintSetup which manages the print settings of current document.
P PrintToFileName string The file name when printing to file.
P PrintToFile bool Indicates whether to print to file.
P ViewSheetSetting 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.
P IsReadOnly bool Identifies if the object is read-only or modifiable. APIObject