Reorients the view to align with the forward direction.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public void OrientTo( XYZ forwardDirection )
Parameters
- forwardDirection XYZ
- The forward direction.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | forwardDirection has zero length. |
| InvalidOperationException | View is locked and cannot be reoriented. |
