Category Drawings and detail, Object ProDrawing

Function ProDrawingDimCreate


DEPRECATED: Since Creo 4.0
SUPERSEDED BY: ProDrawingDimensionCreate
Description
Creates a dimension in drawing mode with the specified attachments and sense, at the specified location. Note: This function is deprecated. Note: From Creo 4.0 onwards ProDrawingDimCreate() has been superseded by ProDrawingDimensionCreate(). ProDrawingDimCreate() uses orient hint from dsense_arr, which is replaced by single argument orient_hint in the superseded API.
Replacement in Object TOOLKIT: pfcModel2D::CreateDrawingDimension
Synopsis
#include <ProDrawing.h>
ProErrorProDrawingDimCreate(
ProDrawing drawing
/* (In)
the drawing.
*/
ProSelection* attachments_arr
/* (In)
ProArray of attachments.
*/
ProDimSense* dsense_arr
/* (In)
ProArray of sense.
*/
ProVector location
/* (In)
specifies where to put the dimension text.
*/
ProBoolean ref_dim
/* (In)
indicates whether a PRO_DIMENSION or a PRO_REF_DIMENSION should be created.
*/
ProDimension* dimension
/* (Out)
the newly created dimension
*/
)
Returns
PRO_TK_BAD_INPUTSone or more of the input arguments are invalid.
PRO_TK_BAD_DIM_ATTACHa dimension could not be created with the attachments and sense specified.
PRO_TK_NO_ERRORsuccessfully created a dimension with the specified attachments and sense.

Manual References:

  1. Technical Summary of Changes for Creo 4.0 F000: Dimensions
  2. Technical Summary of Changes for Creo 4.0 F000: Creating Dimensions with Intersection Type of Reference
  3. Drawings: Drawing Dimension Attachments and Dimension Creation

Sample Code References:

  1. pt_examples ( TestDimension.c )
  2. pt_userguide ( UgDrawingDimensions.c )
  3. pt_userguide ( UgDrawingDimensions.c )