ObjectType



Your Ad Here

Returns the object type.

Syntax

Rhino.ObjectType (strObject)

Parameters

strObject

Required.  String.  The identifier of the object.

Returns

Number

The object type if successful.  The valid object types are as follows:

0

Unknown object

1

Point

2

Point cloud

4

Curve

8

Surface or single-face brep

16

Polysurface or multiple-face

32

Mesh

256

Light

512

Annotation

4096

Instance or block reference

8192

Text dot object

16384

Grip object

32768

Detail

65536

Hatch

131072

Morph control

134217728

Cage

268435456

Phantom

536870912

Clipping plane

Null

If not successful, or on error.

Example

Dim strObject, intType

strObject = Rhino.GetObject("Select object")

If strObject <> vbNull Then

intType = Rhino.ObjectType(strObject)

Rhino.Print "Object type: " & CStr(intType)

End If

Also See

ObjectsByType

Return to Rhino Index


Your Ad Here