Object ProDisp

Function ProDispObjectSetSurfaceAppearanceProps


Description
Sets appearance prop of a disp object attached to scene. This API is only for 3d mode (part/assembly etc) and won't work in 2D (drawings, sketch, CE).
Synopsis
#include <ProDispObject.h>
ProErrorProDispObjectSetSurfaceAppearanceProps(
int window
/* (In)
Identifier of window in which ProDispObject will be detached from Creo scene
*/
int* key_list
/* (In)
ProArray containing member_identification table of ProDispObject which will be detached from scene graph. This is the "key_list" passed to ProDispObjectAttach plus the "new_key
*/
ProSurfaceAppearanceProps surf_appearance_props
/* (In)
New appearance property for display object.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded
PRO_TK_BAD_INPUTSInvalid window
PRO_TK_E_NOT_FOUNDProDispObject not found in the scene graph of window
PRO_TK_GENERAL_ERROROne or more input arguments was invalid
PRO_TK_UNSUPPORTEDFunction is not supported on given window(because it is 2D window, like drawing or sketcher).

Manual References:

  1. User Interface: Basic Graphics: Creating 3D Shaded Data for Rendering

Sample Code References:

  1. pt_examples ( TestDispObject.c )
  2. pt_examples ( TestDispObject.c )