plt3DISurface GetColor

Gets the color of the surface.

Syntax

plt3DISurface_handle GetColor

Application

HyperWorks Tcl Query

Description

The string returned will be either a color name (if the RGB values of the color match a name), an index (if the value matches one of the standard palette of colors), or a set of three RGB values. Returns a color identifier string.

Example

To get the color of an existing surface:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName 1
myPageName GetWindowHandle myWinName 1
myWinName GetClientHandle myClientName
myClientName GetSurfaceHandle mySurfaceName 1
mySurfaceName GetColor

Errors

Success (0) or an error code.