Category Drawings and detail, Object ProDwg

Function ProDwgLayerItemInit


Description
Initializes a layer item structure for the singular case when all of the following are true:
  • The layer owner is a drawing.
  • The layer item owner is an assembly.
  • The layer item is a component.
  • You want to control the display status of this component only in a subassembly specified by the given path (owner).

In all other situations, use the function ProLayerItemInit().

Synopsis
#include <ProLayer.h>
ProErrorProDwgLayerItemInit(
ProLayerType type
/* (In)
The item type.
*/
int id
/* (In)
The item identifier.
*/
ProAsmcomppath* owner
/* (In)
The owner of the item. You can have table_num greater than 0 for type PRO_LAYER_SUB_ASSEMBLY only.
*/
ProLayerItem* item
/* (Out)
The layer item.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully initialized the structure.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
See Also
ProLayerItemInit

Manual References:

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

Sample Code References:

  1. pt_examples ( TestLayer.c )