ReferenceObjects - PYTHON 不支持

Returns the identifiers of all reference objects attached to the document.An object from a work session reference model is a reference object.A reference object cannot be modified.An object is a reference object if, and only if, it is on a reference layer.

语法

Rhino.ReferenceObjects ([blnIncludeLights [, blnIncludeGrips]])

参数

blnIncludeLights

可选参数。Boolean.Include light objects.If omitted, light objects are not returned (False).

blnIncludeGrips

可选参数。Boolean.Include grips objects.If omitted, grips objects are not returned (False).

返回值

Array

An array of strings identifying the objects if successful.

Null

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

示例

Dim arrObjects, strObject

arrObjects = Rhino.ReferenceObjects

If IsArray(arrObjects) Then

For Each strObject In arrObjects

Rhino.Print "Object identifier:" & strObject

Next

End If

同见

AllObjects

HiddenObjects

LockedObjects

NormalObjects