poIPartAssembly GetColorIndex

Gets the part assembly color as an index value in the color palette.

Syntax

poIPartAssembly_handle GetColorIndex

Application

HyperView Tcl Query

Description

This command retrieves the part assembly color as an index value in the color palette.

Example

To get the color index for part assembly 1:
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 GetPartAssemblyHandle part_assembly_handle 1
part_assembly_handle GetColorIndex
hwi CloseStack

Errors

Returns 0 if an error occurs and sets the error condition on the session handle. See session_handle GetError.