Category Creo Parametric fundamentals, Object ProLayer

Function ProLayerCreate


Description
Creates a new layer in the specified object.
Replacement in Object TOOLKIT: pfcModel::CreateLayer
Synopsis
#include <ProLayer.h>
ProErrorProLayerCreate(
ProMdl owner
/* (In)
The model in which to create the layer.
*/
ProName layer_name
/* (In)
The name of the layer.
*/
ProLayer* layer
/* (In)
The structure into which Creo Parametric will write the layer information. You must allocate the space for this structure.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully created the new layer.
PRO_TK_INVALID_NAMEYou specified an invalid layer name.
PRO_TK_E_FOUNDA layer with the specified name already exists.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.

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 )