NextObject

Returns the identifier of the next object in the document.

Syntax

Rhino.NextObject (strObject [, blnSelect [, blnIncludeLights [, blnIncludeGrips]]])

Parameters

strObject

Required.  String.  The identifier of the object from which to get the next object.

blnSelect

Optional.  Boolean.  Select the object.  If omitted, the object is not selected (False).

blnIncludeLights

Optional.  Boolean.  Include light objects.  If omitted, light objects are not returned (False).

blnIncludeGrips

Optional.  Boolean.  Include grips objects.  If omitted, grips objects are not returned (False).

Returns

String

The identifier of the object if successful.

Null

If not successful, or on error.

Example

Dim strObject

strObject = Rhino.FirstObject

While Not IsNull(strObject)

Rhino.Print "Object identifier: " & strObject

strObject = Rhino.NextObject(strObject)

Wend

Also See

FirstObject

LastObject