*SetColorMaterialReference()

Sets the color of a graphic or body entity.

Syntax

*SetColorMaterialReference(varname,material_reference)

Arguments

varname
The variable name of the MDL graphic or body.
Data type: varname
material_reference
The material color reference.
Data type: real

Example

*ColorMaterial(mat_aluminum_alloy, "Aluminum alloy")
*SetColorMaterialComplex(mat_aluminum_alloy, 1, 32.7007, 0, 0, 0, 1, 1, 1, 0.13923, 0.13923, 0.13923, 0.69615, 0.69615, 0.69615)
*ColorMaterial(mat_color1, "Color 1")
*SetColorMaterialSimple(mat_color1, 0.4, 0.7, 0.8, 1.0)
*SetColorMaterialReference(gra_0, mat_color1)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()