Category Creo Parametric fundamentals, Object ProLayeritem

Function ProLayeritemLayersGet


Description
Finds all layers containing the given item.
Replacement in Object TOOLKIT: wfcLayerItem::GetLayers
Synopsis
#include <ProLayer.h>
ProErrorProLayeritemLayersGet(
ProDrawing pro_drawing
/* (In)
The drawing that owns the layers where the item resides. If NULL, layers residing in the same model as the given layer item will be found.
*/
ProLayerItem* pro_layer_item
/* (In)
The layer item. If the type is PRO_LAYITEM_FROM_PATH, you must supply the pro_drawing argument.
*/
ProLayer** pro_layers
/* (Out)
ProArray of layers which contain the item. Free this array using ProArrayFree().
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_E_NOT_FOUNDThe item is not found on any layers in the designated model.
PRO_TK_BAD_INPUTSThe input argument is invalid.

Manual References:

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