Category Creo Parametric fundamentals, Object ProLayer

Function ProLayerDefLayerSet


Description
Sets up a default layer of the specified type. Note: This function is equivalent to setting the default layer name for the session using the configuration option "def_layer". This does not save the status to a particular model. The default layer status does not remain on a layer if it is renamed.
Replacement in Object TOOLKIT: wfcLayerState::SetDefaultLayer
Synopsis
#include <ProLayer.h>
ProErrorProLayerDefLayerSet(
ProDefLayerType def_layer_type
/* (In)
The type of default layer to set up.
*/
ProName def_layer_name
/* (In)
The name of the default layer to set up. If this is an empty name, the function unsets the default layer.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set up the default layer.
PRO_TK_INVALID_NAMEdef_layer_name contains invalid characters.
PRO_TK_BAD_INPUTSdef_layer_type is invalid.

Manual References:

  1. Core: Models and Model Items: Layers
  2. Core: Models and Model Items: Layers

Sample Code References:

  1. pt_examples ( TestLayer.c )