Category 3D drawings and annotations, Object ProDimension

Function ProDimensionAnnotationelemCreate


Description
Create an annotation element for the given driving dimension. This will trigger a regeneration.
Licensing Requirement
TOOLKIT for 3D Drawings
Synopsis
#include <ProDimension.h>
ProErrorProDimensionAnnotationelemCreate(
ProDimension* dim
/* (In)
The dimension.
*/
ProAnnotationPlane* plane
/* (In)
The dimension orientation. event of a regeneration failure, PRO_B_FALSE to abort the modification.
*/
ProAnnotationElem* elem
/* (Out)
The newly created annotation element.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more input arguments was invalid.
PRO_TK_INVALID_TYPEThe dimension is not a driving dimension.
PRO_TK_INVALID_ITEMThis type of driving dimension is not suitable for incorporation into a driving dimension annotation element.
PRO_TK_E_FOUNDThe dimension already has an annotation element.
PRO_TK_INVALID_MATRIXThe orientation provided cannot be used for this dimension.
PRO_TK_NOT_VALIDFor a driving dimension annotation element, the annotation orientation provided is not frozen.
PRO_TK_GENERAL_ERRORThe annotation element could not be constructed in the owner feature.

Manual References:

  1. Annotations: Annotation Features and Annotations: Driving Dimension Annotation Elements
  2. Annotations: Annotation Features and Annotations: Driving Dimension Annotation Elements