Verifies the existence of a material in the document.
Rhino.IsMaterial (intMaterialIndex)
intMaterialIndex |
Required. Number. The zero-based material index. |
True |
If successful. |
False |
If not successful. |
Null |
On error. |
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