RemoveObjectFromGroup

Removes a single object from an existing group.

Syntax

rhinoscriptsyntax.RemoveObjectFromGroup (object_id, group_name)

rhinoscript.group.RemoveObjectFromGroup (object_id, group_name)

Parameters

object_id

Required.  String or Guid.  The identifier of the object.

group_name

Required.  String.  The name of an existing group.

Returns

Boolean

True or False indicating success or failure.

Example

import rhinoscriptsyntax as rs

name = "NewGroup"

id = rs.GetObject("Select object")

if name: rs.RemoveObjectFromGroup(id,name)

Also See

IsGroupEmpty

ObjectGroups

ObjectsByGroup

RemoveObjectFromAllGroups

RemoveObjectFromTopGroup

RemoveObjectsFromGroup