RenameView

Renames, or changes the title, of the specified view..

Syntax

rhinoscriptsyntax.RenameView (old_title, new_title)

rhinoscript.view.RenameView (old_title, new_title)

Parameters

old_title

Required.  String or Guid.  The title or identifier of the view to rename.

new_title

Required.  String.  The new title of the view.

Returns

String

The view's previous title if successful.

None

if not successful, or on error.

Example

import rhinoscriptsyntax as rs

oldtitle = rs.CurrentView()

rs.renameview( oldtitle, "Current" )

Also See

ViewNames