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.4.0.0 (26.4.0.0)
Syntax
C#
public void Print( ViewSet views, View viewTemplate )
Parameters
- views ViewSet
- The set of views which need to be printed.
- viewTemplate View
- The view template which apply to the set of views.
Exceptions
| 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 null. |
| ArgumentException | Thrown when the view set contains a null 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. |
