Category 3D drawings and annotations, Object ProDimension

Function ProDimensionDecimalsSet


Description
For a non-rounded dimension, sets the number of significant digits. For a rounded dimension, sets the number of displayed digits. Note: A rounded dimension should be un-rounded to allow the number of significant digits to be set.
Synopsis
#include <ProDimension.h>
ProErrorProDimensionDecimalsSet(
ProDimension* dimension
/* (In)
The dimension handle.
*/
int decimals
/* (In)
The number of significant digits; has to be non-negative. Note: This argument must be such that the total number of symbols (in the mmm.ddd format) will not exceed 13 for the both (dimension-tolerance) and (dimension+tolerance) values.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the number of significant digits.
PRO_TK_BAD_INPUTSThe input "dimension" argument is invalid.
PRO_TK_BAD_CONTEXTThe dimension is fractional, so this value cannot be set.
PRO_TK_NOT_VALIDThe input "decimals" argument is out-of-range .

Manual References:

  1. Annotations: Annotation Features and Annotations: Modifying Dimensions
  2. Annotations: Annotation Features and Annotations: Modifying Dimensions

Sample Code References:

  1. pt_examples ( TestDimension.c )