Revit 2026 API
DocumentPrint(View |
Prints a set of views with a specified view template and default print settings.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public void Print( ViewSet views, View viewTemplate, bool useCurrentPrintSettings )
Public Sub Print ( views As ViewSet, viewTemplate As View, useCurrentPrintSettings As Boolean )
public: void Print( ViewSet^ views, View^ viewTemplate, bool useCurrentPrintSettings )
member Print : views : ViewSet * viewTemplate : View * useCurrentPrintSettings : bool -> unit
Parameters

Exception | Condition |
---|---|
InvalidOperationException | Thrown when printing is not allowed in the current application mode. Or when at least one view from the view set is not a printable view. |
ArgumentNullException | Thrown when the view set to be printed is . |
ArgumentException | Thrown when the view set contains a element. |
ApplicationException | Thrown when at least one view from the view set could not be printed. |
OperationCanceledException | Thrown when print is cancelled by event handler. |

If one view in the set can not be printed successfully then an exception will be thrown.
See Also