API Documentation > 3D drawings and annotations > Object ProDimension > Function ProDimensionDecimalsSet
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.
Replacement in Object TOOLKIT:
Synopsis
#include <ProDimension.h>
ProDimensionDecimalsSet
(
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
The function successfully set the number of significant digits.
Model is in read-only state.
The input "dimension" argument is invalid.
The dimension is fractional, so this value cannot be set.
The input "decimals" argument is out-of-range .
Sample Code References
User Guide References
Was this helpful?