IsMaterial

Verifies the existence of a material in the document.

Syntax

Rhino.IsMaterial (intMaterialIndex)

Parameters

intMaterialIndex

Required.  Number.  The zero-based material index.

Returns

True

If successful.

False

If not successful.

Null

On error.

Example

Dim intMaterialIndex

intMaterialIndex = Rhino.GetInteger("Material index")

If Rhino.IsMaterial(intMaterialIndex) Then

  Rhino.Print "The material exists."

Else

  Rhino.Print "The material does not exist."

End If

Also See

IsMaterialDefault

IsMaterialReference