Category Drawings and detail, Object ProDtlsymdefattach

Function ProDtlsymdefattachAlloc


Description
Allocate and initialize the memory for symbol definition attachment. User must release the memory by ProDtlsymdefattachFree
Synopsis
#include <ProDtlsymdef.h>
ProErrorProDtlsymdefattachAlloc(
ProDtlsymdefattachType type
/* (In)
The attachment type.
*/
int entity_id
/* (In)
The index in the symbol definition entity array at which you are attached. Can be -1 if type is "free".
*/
double entity_parameter
/* (In)
The location along the entity at which the attachment occurs. (Ignored for free attachment and radial leaders).
*/
ProVector location
/* (In)
Attachment location.
*/
ProDtlsymdefattach* attach
/* (Out)
The symbol definition attachment.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully allocated memory.
PRO_TK_BAD_INPUTSBad one or more input arguments.
PRO_TK_INVALID_TYPEBad type.
PRO_TK_OUT_OF_MEMORYNot enough memory.

Manual References:

  1. Drawings: Symbol Definition Attachments
  2. Drawings: Symbol Definition Attachments
  3. Drawings: Creating a Symbol Definition

Sample Code References:

  1. pt_examples ( TestSymDefMenu.c )
  2. pt_userguide ( UgDtlsymdefExamples.c )