< Rev API Docs

ViewPrint(View, Boolean) Method

Print this view with the given view template, and either the view's document's print setting or the print setting of the current active document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public void Print(
	View viewTemplate,
	bool useCurrentPrintSettings
)

Parameters

viewTemplate  View
The view template which apply to the view.
useCurrentPrintSettings  Boolean
If true, print the view with the print setting of the current active document; otherwise with the view's document's print setting.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when the view cannot be printed.
See Also