MaterialIndices

Returns the indices of all material in the document.

Syntax

Rhino.MaterialIndices ()

Parameters

None.

Returns

Array

An array of material indices if successful.

Null

If not successful, or on error.

Example

Dim arrMaterials, intMaterial

arrMaterials = Rhino.MaterialIndices

If IsArray(arrMaterials) Then

  For Each intMaterial In arrMaterials

    Rhino.Print intMaterial

  Next

End If

Also See

MaterialId

MaterialIds

MaterialIndex