API Documentation > Creo Parametric fundamentals > Object ProLayer > Function ProLayerItemsPopulate
Function ProLayerItemsPopulate
Description
Retrieves the items on the specified layer.
Replacement in Object TOOLKIT:
Synopsis
#include <ProLayer.h>
ProLayerItemsPopulate
(
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
The function successfully retrieved the information.
The input argument is invalid.
A layer with the specified name was not found.
A general error occurred and the function failed.
The layer has too many items to report. p_layer_item return NULL and p_count return 0.
Sample Code References
User Guide References
Was this helpful?