Prints a set of views with default view template and default print settings.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- views
- Type: Autodesk.Revit.DBViewSet
The set of views which need to be printed.
- useCurrentPrintSettings
- Type: SystemBoolean
If true, print the view with the current print setting, otherwise with the print setting of the document of the view.
Remarks
If one view in the set can not be printed successfully then an exception will be thrown.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsInvalidOperationException | 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. |
Autodesk.Revit.ExceptionsArgumentNullException | Thrown when the view set to be printed is a null reference (Nothing in Visual Basic). |
Autodesk.Revit.ExceptionsArgumentException | Thrown when the view set contains a a null reference (Nothing in Visual Basic) element. |
Autodesk.Revit.ExceptionsApplicationException | Thrown when at least one view from the view set could not be printed. |
Autodesk.Revit.ExceptionsOperationCanceledException | Thrown when print is cancelled by event handler. |