IsGroupEmpty

Verifies that an existing group is empty, or contains no object members.

Syntax

rhinoscriptsyntax.IsGroupEmpty (group_name)

rhinoscript.group.IsGroupEmpty (group_name)

Parameters

group_name

Required.  String.  The name of an existing group.

Returns

Boolean

True if successful, otherwise False.

None

On error.

Example

import rhinoscriptsyntax as rs

names = rs.GroupNames()

if names:

    for name in names:

        if rs.IsGroupEmpty(name): rs.DeleteGroup(name)

Also See

AddObjectsToGroup

AddObjectToGroup

RemoveObjectFromAllGroups

RemoveObjectFromGroup

RemoveObjectFromTopGroup

RemoveObjectsFromGroup