Category Creo Parametric fundamentals, Object ProLayer

Function ProLayerDisplaystatusSet


Description
Sets the display status of the specified layer.

NOTE:

This is a temporary setting. It will be lost after you save or retrieve a model. To change the display status permanently, call the function ProLayerDisplaystatusSave().

Replacement in Object TOOLKIT: pfcLayer::Status
Synopsis
#include <ProLayer.h>
ProErrorProLayerDisplaystatusSet(
ProLayer* layer
/* (In)
The layer whose status you want to set
*/
ProLayerDisplay display_status
/* (In)
The display status
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the status.
PRO_TK_BAD_INPUTSEither one or more of the input arguments are invalid, or layer->owner is NULL.
PRO_TK_INVALID_NAMEYou specified an invalid layer name.
PRO_TK_GENERAL_ERRORThe specified layer was not found.
PRO_TK_CANT_MODIFYdisplay status of the layer cannot be changed
See Also
ProLayerDisplaystatusSave

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: Models and Model Items: Layers
  3. Core: Models and Model Items: Layers

Sample Code References:

  1. pt_af_examples ( PTAFNotesUpdate.c )
  2. pt_examples ( TestLayer.c )
  3. pt_userguide ( UgModelLayerScan.c )
  4. pt_userguide ( UgModelLayerScan.c )
  5. pt_userguide ( UgModelLayerScan.c )