RenameGroup

Renames an existing group.

Syntax

rhinocsriptsyntax.RenameGroup (old_name, new_name)

rhinocsript.group.RenameGroup (old_name, new_name)

Parameters

old_name

Required.  String.  The name of an existing group.

new_name

Required.  String.  The new group name.

Returns

String

The new group name if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

strOldGroup = rs.GetString("Old group name")

if strOldGroup:

    strNewGroup = rs.GetString("New group name")

    if strNewName: rs.RenameGroup(strOldGroup, strNewGroup)

Also See

AddGroup

DeleteGroup

GroupCount

GroupNames

IsGroup