FirstObject

Returns the identifier of the first object in the document.  The first object in the document is the last object created by the user.

Syntax

Rhino.FirstObject ([blnSelect [, blnIncludeLights [, blnIncludeGrips]]])

Parameters

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

Rhino.AddLine Array(0,0,0), Array(5,5,0)

Rhino.AddCircle Array(0,0,0), 5

strObject = Rhino.FirstObject

Rhino.Print "Object identifier: " & strObject

Also See

LastObject

NextObject