Reorients the view to align with the forward direction.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic void OrientTo(
XYZ forwardDirection
)
Public Sub OrientTo (
forwardDirection As XYZ
)
public:
void OrientTo(
XYZ^ forwardDirection
)
member OrientTo :
forwardDirection : XYZ -> unit
Parameters
- forwardDirection XYZ
-
The forward direction.
Exceptions
Remarks
This method adjusts the ViewOrientation to align with the input forward direction.
The eye position will be automatically determined based on the shape of the
viewing area and size of the model. The UpDirection will be aligned with the project Z axis.
See Also