AddObjectToGroup

Adds a single object to an existing group.

Syntax

rhinoscriptsyntax.AddObjectToGroup (object_id, group_name)

rhinoscript.group.AddObjectToGroup (object_id, group_name)

Parameters

object_id

Required.  String or Guid.  The identifier of the object to add to the group.

group_name

Required.  String.  The name of an existing group.

Returns

Boolean

True or False indicating success or failure

None

On error.

Example

import rhinoscriptsyntax as rs

name = "NewGroup"

id = rs.GetObject("Select object to add to group")

if id: rs.AddObjectToGroup(id,name)

Also See

AddObjectsToGroup

IsGroupEmpty

ObjectGroups

ObjectsByGroup