AddNamedView

Adds a new named view to the document.

Syntax

rhinoscriptsyntax.AddNamedView (name, view=None)

rhinoscript.view.AddNamedView (name, view=None)

Parameters

name

Required.  String.  The name of the new named view.

view

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

Returns

String

The name of the newly created named view if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

views = rs.ViewNames()

if views:

    for view in views:

        name = view + "_view"

        rs.AddNamedView( name, view )

Also See

DeleteNamedView

NamedViews

RestoreNamedView