Returns the identifiers of all objects that are visible in a specified view.
Rhino.VisibleObjects ([strView [, blnSelect [, blnIncludeLights [, blnIncludeGrips]]]])
strView |
可选参数。字符串。The title of the view.If omitted, the current active view is used. |
blnSelect |
可选参数。Boolean.Select the objects.If omitted, the object is not selected (False). |
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.VisibleObjects("Top")
If IsArray(arrObjects) Then
For Each strObject In arrObjects
Rhino.Print "Object identifier:" & strObject
Next
End If