Category Creo Parametric fundamentals, Object ProLayer

Function ProLayerItemAdd


Description
Adds the specified item to a layer.
Replacement in Object TOOLKIT: pfcLayer::AddItem
Synopsis
#include <ProLayer.h>
ProErrorProLayerItemAdd(
ProLayer* layer
/* (In)
The layer to which to add the item
*/
ProLayerItem* layer_item
/* (In)
The item to add
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully added the item.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_INVALID_NAMEYou specified an invalid layer name.
PRO_TK_INVALID_TYPEYou specified an invalid type in the ProLayerItem structure.
PRO_TK_GENERAL_ERRORThe specified layer was not found.

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 )