Category Drawings and detail, Object ProDrawing

Function ProDrawingDimAttachpointsGet


Description
Retrieves the attachments and the sense of the specified drawing dimension. Only applicable for dimensions created in drawing mode. This function also supports drawing dimensions created from intersections of geometric entities.
Synopsis
#include <ProDrawing.h>
ProErrorProDrawingDimAttachpointsGet(
ProDrawing drawing
/* (In)
The drawing.
*/
ProDimension* dimension
/* (In)
The dimension.
*/
ProDimAttachment** attachments_arr
/* (Out)
ProArray of attachments. Each attach point is described by two consecutive array elements, of which the second one may be null. If both elements are not null then the attach point refers to the intersection of the elements. If the second element is null then the attach point refers to the first one. Free this result using ProDimattachmentarrayFree(). Pass NULL if not interested in this output.
*/
ProDimSense** dsense_arr
/* (Out)
ProArray of dimension sense. Free this result using ProArrayFree(). Pass NULL if not interested in this output.
*/
)
Returns
PRO_TK_BAD_INPUTSone or more of the input arguments are invalid or if both the output arguments are NULL.
PRO_TK_INVALID_ITEMthe dimension specified is not a valid dimension created in drawing mode.
PRO_TK_NO_ERRORsuccessfully retrieved the attachments and the sense.
PRO_TK_INVALID_TYPEthe dimension sense type is not supported with this function.

Manual References:

  1. Drawings: Drawing Dimension Attachments and Dimension Creation
  2. Drawings: Drawing Dimension Attachments and Dimension Creation

Sample Code References:

  1. pt_examples ( TestDimension.c )