IsMaterialReference

Verifies a material is referenced from another file.

Syntax

Rhino.IsMaterialReference (intMaterialIndex)

Parameters

intMaterialIndex

Required.  Number.  The zero-based material index.

Returns

Boolean

True if successful, otherwise False.

Null

On error.

Example

Dim strObject, intIndex

strObject = Rhino.GetObject

If Not IsNull(strObject) Then

intIndex = Rhino.ObjectMaterialIndex(strObject)

If Rhino.IsMaterialReference(intIndex) Then

Rhino.Print "The material is referenced from another file."

Else

Rhino.Print "The material is not referenced from another file."

End If

End If

Also See

IsLayerReference

IsLightReference

isObjectReference