## ProjectItem.IsKindOf

### Description

Returns true if this object matches a given type and false otherwise. The object will always return true when queried with the string returned by its SIObject.Type property, and it may also return true for other, related types.

### C# Syntax

    Boolean ProjectItem.IsKindOf( String in_objectType );

### Scripting Syntax

    oBoolean = ProjectItem.IsKindOf( Type );

### Return Value

Boolean

### Parameters

Parameter | Type | Description
--- | --- | ---
Type | String | an object type

### Examples

#### VBScript Example

    set oRoot = Application.ActiveProject.ActiveScene.Root

    set oGrid = oRoot.AddGeometry( "Grid","MeshSurface" )

    set oCluster = oGrid.ActivePrimitive.Geometry.AddCluster( siVertexCluster, "VextexClusterOnGrid", array(4,5,6) )

    Application.LogMessage "cluster is a kind of poly? " & oCluster.IsKindOf( "poly" )

    Application.LogMessage "cluster is a kind of pnt? " & oCluster.IsKindOf( "pnt" )

    Application.LogMessage "cluster is a kind of edge? " & oCluster.IsKindOf( "edge" )

    set oCube = oRoot.AddGeometry( "Cube", "MeshSurface" )

    if oCube.IsKindOf( "Cube" ) then

    	Application.LogMessage oCube.Name & " is a cube object"

    end if

    if oCube.IsKindOf( "polymsh" ) then

    	Application.LogMessage oCube.Name & " is a surface mesh object"

    end if