Revit 2025 API
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: 25.0.0.0 (25.0.0.0)
Syntax
public void Print( View viewTemplate, bool useCurrentPrintSettings )
Public Sub Print ( viewTemplate As View, useCurrentPrintSettings As Boolean )
public: void Print( View^ viewTemplate, bool useCurrentPrintSettings )
member Print : viewTemplate : View * useCurrentPrintSettings : bool -> unit
Parameters
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown when the view cannot be printed. |
See Also