Category 3D drawings and annotations, Object ProGtoldata

Function ProGtoldataPerUnitSet


DEPRECATED: Since Creo 4.0
SUPERSEDED BY: ProGtolCompositeSet
Description
Note: This function is deprecated. Use ProGtolCompositeSet() instead. Note that you will need to set the resulting string, where here you set values. Sets the per unit tolerance of a gtol.
Synopsis
#include <ProGtol.h>
ProErrorProGtoldataPerUnitSet(
ProGtoldata data
/* (In)
The gtol data description
*/
ProBoolean perunit_tolerance
/* (In)
Whether the gtol has a per unit tolerance
*/
double value_per_unit
/* (In)
The value per unit, if perunit_tolerance=TRUE
*/
double unit_area_or_length
/* (In)
The unit area, or length (depending upon the tolerance type).
*/
ProGtoldataStatus* status
/* (Out)
The resulting status of the gtol
*/
)
Returns
PRO_TK_NO_ERRORThe function completed successfully.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_CANT_MODIFYThe per unit value may not be modified for this gtol data.
PRO_TK_NOT_VALIDValues are not valid for this type of gtol.
PRO_TK_GENERAL_ERRORAn error occurred and the function failed.

Manual References:

  1. Technical Summary of Changes for Creo 4.0 F000: Updates to Error Types
  2. Technical Summary of Changes for Creo 4.0 F000: Geometric Tolerances

Sample Code References:

  1. pt_examples ( TestGtol.c )