ViewTarget

Returns or sets the target location of the specified view.

Syntax

Rhino.ViewTarget ([strView [, arrTarget]])

Parameters

strView

Optional.  String.  The title or identifier of the view.  If omitted, the current active view is used.

arrTarget

Optional.  Array.  A 3-D point identifying the new target location.  If arrTarget is not specified, the current target location is returned.

Returns

Array

If arrTarget is not specified,  then a 3-D point containing the current target location if successful.

Array

If arrTarget is specified,  then a 3-D point containing the previous target location if successful.

Null

If not successful, or on error.

Example

Dim strView, arrTarget

strView = Rhino.CurrentView

arrTarget = Rhino.GetPoint("Select new target location")

If IsArray(arrTarget) Then

Rhino.ViewTarget strView, arrTarget

End If

Also See

ViewCamera

ViewCameraTarget