Category Drawings and detail, Object ProDtlentity

Function ProDtlentityCreate


Description
Creates a detail item (draft entity) in the Creo Parametric drawing.

Note : The function cannot access symbol definitions for special symbols, such as, datum targets or parametric connector symbols.

Replacement in Object TOOLKIT: pfcDetailItemOwner::CreateDetailItem
pfcDetailSymbolDefItem::CreateDetailItem
Synopsis
#include <ProDtlentity.h>
ProErrorProDtlentityCreate(
ProMdl owner
/* (In)
The owner model handle.
*/
ProDtlsymdef* symbol
/* (In)
If you are adding a detail item to the owner, set this argument to NULL. If you are adding draft entity to a symbol definition, set this argument to be that symbol definition.
*/
ProDtlentitydata entdata
/* (In)
The draft entity data.
*/
ProDtlentity* entity
/* (Out)
The entity handle.
*/
)
Returns
PRO_TK_NO_ERRORThe function completed successfully.
PRO_TK_BAD_INPUTSInvalid input argument(s).
PRO_TK_GENERAL_ERRORThe function failed.

Manual References:

  1. Drawings: Creating, Modifying and Reading Detail Items
  2. Drawings: Creating, Modifying and Reading Detail Items
  3. Drawings: Creating a Symbol Definition

Sample Code References:

  1. pt_examples ( TestDtlentity.c )
  2. pt_examples ( TestSymDefMenu.c )
  3. pt_userguide ( UgDtlentityExamples.c )
  4. pt_userguide ( UgDtlsymdefExamples.c )