UIDocument Constructor
Use a database level Document to construct a UI-level Document.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 20.0.0.0 (20.0.0.377)

Syntax

C#
public UIDocument(
	Document document
)
Visual Basic
Public Sub New ( _
	document As Document _
)
Visual C++
public:
UIDocument(
	Document^ document
)

Parameters

document
Type: Autodesk.Revit.DB..::..Document
The database level document.

Exceptions

ExceptionCondition
Autodesk.Revit.Exceptions..::..ArgumentException document is not a primary document, it is a linked document.
Autodesk.Revit.Exceptions..::..ArgumentNullException A non-optional argument was NULL

See Also