Category Graphics and model display, Object ProColor

Function ProColorByTypeGet


Description
Retrieves the standard color used for the specified object type.
Replacement in Object TOOLKIT: wfcWDisplay::GetColorByObjectType
Synopsis
#include <ProColor.h>
ProErrorProColorByTypeGet(
ProDisplayedType object_type
/* (In)
The object type.
*/
ProColortype* color
/* (Out)
The color typically used by Creo Parametric to render the object.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the color.
PRO_TK_BAD_INPUTSOne or more arguments are invalid.
PRO_TK_E_NOT_FOUNDNo default color entry exists for this entity type.

Manual References:

  1. User Interface: Basic Graphics: Setting Colors to Match Existing Entities

Sample Code References:

  1. pt_userguide ( UgGraphColorsAdjust.c )