Category Drawings and detail, Object ProDtlattach

Function ProDtlattachAlloc


Description
Allocate and initialize the memory for a detail attachment. User must release the memory by ProDtlattachFree.
Synopsis
#include <ProDtlattach.h>
ProErrorProDtlattachAlloc(
ProDtlattachType type
/* (In)
The attachment type (FREE, PARAMETRIC or OFFSET).
*/
ProView view
/* (In)
The view. Use only if the attachment type is set to PRO_DTLATTACHTYPE_FREE, to make an attachment relative to a drawing view. Use NULL to attach to a point unconnected to a drawing view and for solid model annotations.
*/
ProVector location
/* (In)
The attachment location. Use if the attachment type is set to PRO_DTLATTACHTYPE_FREE or PRO_DTLATTACHTYPE_OFFSET. For drawing objects and symbols and surface finish on flat-to-screen annotation planes, this should be in screen coordinates. For symbols and surface finish on 3D model annotation planes, this should be in model coordinates.
*/
ProSelection attach_point
/* (In)
The attachment point. Use if the attachment type is PRO_DTLATTACHTYPE_PARAMETRIC or PRO_DTLATTACHTYPE_OFFSET. For drawing attachments, the drawing view and attachment reference must be specified as a part of this structure created using ProSelect(), or by using ProSelectionAlloc () plus ProSelectionViewSet() and ProSelectionPoint3dSet().
*/
ProDtlattach* attachment
/* (Out)
The new detail 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: Detail Attachments and Leaders
  2. Drawings: Detail Attachments and Leaders

Sample Code References:

  1. pt_examples ( TestDtlnote.c )
  2. pt_examples ( TestDtlnote.c )
  3. pt_examples ( TestDtlnote.c )
  4. pt_examples ( TestDtlnote.c )
  5. pt_examples ( TestDtlsyminst.c )
  6. pt_examples ( TestDtlsyminst.c )
  7. pt_userguide ( UgDtlnoteExamples.c )
  8. pt_userguide ( UgDtlnoteExamples.c )
  9. pt_userguide ( UgDtlsymdefExamples.c )
  10. pt_userguide ( UgDtlsyminstExamples.c )
  11. pt_userguide ( UgNoteCreate.c )
  12. pt_userguide ( UgNoteCreate.c )