ZoomBoundingBox

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

Syntax

rhinoscriptsyntax.ZoomBoundingBox ( bounding_box, view=None, all=False )

rhinoscript.view.ZoomBoundingBox ( bounding_box, view=None, all=False )

Parameters

bounding_box

Required.  An array of eight 3-D points that define the corners of the box or a BoundingBox.  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.

view

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

all

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

Returns

None

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject()

if obj:

    bbox = rs.BoundingBox(obj)

    rs.ZoomBoundingBox( bbox )

Also See

ZoomExtents

ZoomSelected