ObjectAttributesDrawColor Method (File3dm) |
Gets the draw color of an object in a file, which is based on the object's color source:
the layer's color, the object's color, or the color of its material (the base color
of a physically based material, else the diffuse color).
Unlike the document overload in Rhino, black and white are never switched to suit
a viewport background.
Namespace:
Rhino.DocObjects
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 9.1
Syntaxpublic Color DrawColor(
File3dm file
)
Public Function DrawColor (
file As File3dm
) As Color
Parameters
- file
- Type: Rhino.FileIOFile3dm
The file that contains the object's layer and material.
Return Value
Type:
ColorThe draw color.
See Also