RestoreNamedView

Restores a named view to the specified view.

Syntax

rhinoscriptsyntax.RestoreNamedView (named_view, view=None, restore_bitmap=False)

rhinoscript.view.RestoreNamedView (named_view, view=None, restore_bitmap=False)

Parameters

named_view

Required.  String.  The name of the named view to restore.

view

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

restore_bitmap

Optional.  Boolean.  Restore the named view's background bitmap. If omitted, the named view's background bitmap is not restored (false).

Returns

String

The name of the restored named view if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

views = rs.NamedViews()

if views: rs.RestoreNamedView(views[0])

Also See

AddNamedView

DeleteNamedView

NamedViews