Category 3D drawings and annotations, Object ProDimension

Function ProDimensionCreate


Description
Creates a new reference or driven dimension in the solid model. ProAnnotationShow() should be called after creating the dimension in order for the dimension to be displayed.
Licensing Requirement
TOOLKIT for 3D Drawings
Synopsis
#include <ProDimension.h>
ProErrorProDimensionCreate(
ProSolid model
/* (In)
The solid model.
*/
ProType dimension_type
/* (In)
The dimension type (PRO_REF_DIMENSION or PRO_DIMENSION)
*/
ProAnnotationPlane* annotation_plane
/* (In)
The annotation plane for the dimension.
*/
ProDimAttachment* attachments_arr
/* (In)
ProArray of attachments.
*/
ProDimSense* dsense_arr
/* (In)
ProArray of dimension sense.
*/
ProDimOrient orient_hint
/* (In)
The orientation hint for the dimension.
*/
Pro3dPnt location
/* (In)
initial location of the dimension text.
*/
ProDimension* dimension
/* (Out)
the newly created dimension
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
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.

Manual References:

  1. Annotations: Annotation Features and Annotations: Accessing Reference and Driven Dimensions
  2. Annotations: Annotation Features and Annotations: Accessing Reference and Driven Dimensions