Adds a new named view to the document.
rhinoscriptsyntax.AddNamedView (name, view=None)
rhinoscript.view.AddNamedView (name, view=None)
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. |
String |
The name of the newly created named view if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
views = rs.ViewNames()
if views:
for view in views:
name = view + "_view"
rs.AddNamedView( name, view )