Restores a named view to the specified view.
rhinoscriptsyntax.RestoreNamedView (named_view, view=None, restore_bitmap=False)
rhinoscript.view.RestoreNamedView (named_view, view=None, restore_bitmap=False)
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). |
String |
The name of the restored named view if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
views = rs.NamedViews()
if views: rs.RestoreNamedView(views[0])