Category Creo Parametric fundamentals, Object ProLayer

Function ProLayerItemsPopulate


Description
Retrieves the items on the specified layer.
Replacement in Object TOOLKIT: pfcLayer::ListItems
Synopsis
#include <ProLayer.h>
ProErrorProLayerItemsPopulate(
ProLayer* layer
/* (In)
The name of the layer.
*/
ProLayerItem** p_layeritem
/* (Out)
An array that contains the types and identifiers of the items on the layer. The function allocates the memory for this argument. Use ProLayeritemarrayFree() to free the allocated memory.
*/
int* p_count
/* (Out)
The number of items on the specified layer.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSThe input argument is invalid.
PRO_TK_E_NOT_FOUNDA layer with the specified name was not found.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
PRO_TK_OUT_OF_MEMORYThe layer has too many items to report. p_layer_item return NULL and p_count return 0.

Manual References:

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

Sample Code References:

  1. pt_examples ( TestLayer.c )