Click or drag to resize

GroupTableAdd Method (String, IEnumerableGuid)

Adds a new group to the group table with a set of objects.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
public int Add(
	string groupName,
	IEnumerable<Guid> objectIds


Type: SystemString
Name of new group.
Type: System.Collections.GenericIEnumerableGuid
An array, a list or any enumerable set of object IDs.

Return Value

Type: Int32
>=0 index of new group.

-1 group not added because a group with that name already exists.

In some cases, calling Add() can cause the group indices to become invalid.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.27
See Also