RemoveObjectFromAllGroups

Removes a single object from any and all groups that it is a member. Neither the object nor the group can be a reference object.

Syntax

Rhino.RemoveObjectFromAllGroups (strObject)

Parameters

strObject

Required.  String.  The identifier of the object.

Returns

Boolean

True or False indicating success or failure.

Null

On error.

Example

Dim strObject

strObject = Rhino.GetObject("Select object")

If Not IsNull(strObject) Then

Rhino.RemoveObjectFromAllGroups strObject

End If

Also See

IsGroupEmpty

ObjectGroups

ObjectsByGroup

RemoveObjectFromGroup

RemoveObjectFromTopGroup

RemoveObjectsFromGroup