Category 3D drawings and annotations, Object ProDimension

Function ProDimensionValueSet


Description
Sets the value of the specified dimension of the object.
Replacement in Object TOOLKIT: pfcBaseParameter::Value
pfcBaseDimension::DimValue
Synopsis
#include <ProDimension.h>
ProErrorProDimensionValueSet(
ProDimension* dimension
/* (In)
The dimension handle.
*/
double value
/* (In)
The new value of the dimension. If a negative number is passed, this will flip the direction of the dimension.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully set the value.
PRO_TK_BAD_CONTEXTThe input dimension is reference.
PRO_TK_BAD_INPUTSThe input argument is invalid.
See Also
ProDimensionIsRegenednegative
ProDimensionValueGet

Manual References:

  1. Assembly: Data Sharing Features: Accessing Properties of Variant Features
  2. Annotations: Annotation Features and Annotations: Modifying Dimensions
  3. Annotations: Annotation Features and Annotations: Modifying Dimensions

Sample Code References:

  1. pt_examples ( TestDimension.c )
  2. pt_geardesign ( GearDesign.c )
  3. pt_geardesign ( GearDesign.c )
  4. pt_geardesign ( GearDesign.c )
  5. pt_geardesign ( GearDesign.c )
  6. pt_userguide ( UgDimsChange.c )
  7. pt_userguide ( UgUISlider.c )
  8. pt_userguide ( UgXsecMassProps.c )