Category Creo Parametric fundamentals, Object ProLayer

Function ProLayerItemInit


Description
Initializes the layer item structure. You should use this function in all situations except one special case, which is covered by the function ProDwgLayerItemInit().
Replacement in Object TOOLKIT: wfcWModel::GetLayerItem
Synopsis
#include <ProLayer.h>
ProErrorProLayerItemInit(
ProLayerType type
/* (In)
The item type
*/
int id
/* (In)
The item identifier
*/
ProMdl owner
/* (In)
The model that owns the item. Cannot be NULL
*/
ProLayerItem* item
/* (Out)
The layer item. Cannot be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully initialized the structure.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_NOT_EXISTItem with such identifier and type does not exist.
See Also
ProDwgLayerItemInit

Manual References:

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

Sample Code References:

  1. pt_af_examples ( PTAFNotesUpdate.c )
  2. pt_examples ( TestLayer.c )