2027 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 Dispose() None Causes the object to release immediately any resources it may be utilizing. (Inherited from APIObject ) APIObject
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M SelectNewPrintDriver(String) None Select a new printer.
M SubmitPrint() Boolean Print the views and sheets defined in the current local PrintManager settings.
M SubmitPrint(View) Boolean Print a view with the current PrintManager settings.
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
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 IsReadOnly bool Identifies if the object is read-only or modifiable. (Inherited from APIObject ) APIObject
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 PrintToFile bool Indicates whether to print to file.
P PrintToFileName string The file name when printing 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.