ObjectTopGroup

Returns the top most group name that an object is assigned.  This function primarily applies to objects that are members of nested groups.

Syntax

Rhino.ObjectTopGroup (strObject)

Parameters

strObject

Required.  String.  The identifier of the object.

Returns

String

The top most group name of the object if successful

Null

If not successful, or on error.

Example

Dim strObject, strGroup

strObject = Rhino.GetObject("Select object")

If Not IsNull(strObject) Then

strGroup = Rhino.ObjectTopGroup(strObject)

If Not IsNull(strGroup) Then

Rhino.Print "Top object group: " & strGroup

End If

End If

Also See

ObjectGroups