ZoomBoundingBox

Zooms to the extents of a specified bounding box in the specified view, or in the active view.

Syntax

Rhino.ZoomBoundingBox (arrCorners [, strView [, blnAll]])

Parameters

arrCorners

Required.  Array.  An array of eight 3-D points that define the corners of the box.  Points need to be  in counter-clockwise order starting with the bottom rectangle of the box.  Use BoundingBox to obtain the bounding box of objects.

strView

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

blnAll

Optional.  Boolean.  Zoom extents in all views.  If omitted, only the specified view is zoomed (False).

Returns

Null.

Example

Dim strObject

strObject = Rhino.GetObject

If Rhino.IsObject(strObject) Then

Rhino.ZoomBoundingBox Rhino.BoundingBox(strObject)

End If

Also See

ZoomExtents

ZoomSelected