poIModel SetColorMode

Sets the current color mode for the model.

Syntax

poIModel_handle SetColorMode mode

Application

HyperView Tcl Modify

Description

This command sets the current color mode setting of the model.

Inputs

mode
Options include: component, model, normal, or partassembly.

Example

To change the model color mode to Color by Model:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle SetColorMode model
hwi CloseStack

Errors

Returns HW_Warning (2) if the model handle is invalid. If the mode argument is not recognized, the color mode will be set to Color by Part.