Zoom and center the view to a specified rectangle.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2013
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- viewCorner1
- Type: Autodesk.Revit.DBXYZ
A corner of the desired view rectangle in model coordinates.
- viewCorner2
- Type: Autodesk.Revit.DBXYZ
The opposite corner of the desired view rectangle in model coordinates.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |