ObjectTopGroup - PYTHON 不支持

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

语法

Rhino.ObjectTopGroup (strObject)

参数

strObject

Required.字符串。The identifier of the object.

返回值

String

The top most group name of the object if successful

Null

如果执行不成功或出错,返回空值。

示例

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

同见

ObjectGroups