Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlGtolCreate


Description
Creates new Gtol with specified placement and value string
Synopsis
#include <ProGtol.h>
ProErrorProMdlGtolCreate(
ProMdl owner_mdl
/* (In)
Owner of the gtol.
*/
ProGtolType type
/* (In)
type of gtol.
*/
ProGtolAttach gtol_attach
/* (In)
placement which includes attachment references and annotation plane.
*/
wchar_t* value_str
/* (In)
value string.
*/
ProGtol* gtol
/* (Out)
newly created gtol.
*/
)
Returns
PRO_TK_NO_ERRORThe function completed successfully.
PRO_TK_BAD_CONTEXTSpecified placement reference are invalid.
PRO_TK_BAD_INPUTSThe input argument is invalid.
PRO_TK_GENERAL_ERRORGtol could not be created.
PRO_TK_UNSUPPORTEDowner_mdl is not drawing for creating make dim or offset type gtol.

Manual References:

  1. Annotations: Geometric Tolerances: Creating a Geometric Tolerance
  2. Annotations: Geometric Tolerances: Creating a Geometric Tolerance

Sample Code References:

  1. pt_examples ( TestGtol.c )
  2. pt_userguide ( UgGtolCreate.c )