Custom Checks
This section describes how to define custom checks in ModelCHECK that users can run using the standard Creo ModelCHECK interface in Creo Parametric.
To define and register a custom check:
1. Set the CUSTMTK_CHECKS_FILE configuration option in the start configuration file to a text file that stores the check definition. For example: CUSTMTK_CHECKS_FILE text\custmtk_checks.txt.
2. Set the contents of the CUSTMTK_CHECKS_FILE file to define the checks. Each check should list the following items:
DEF_<checkname>—Specifies the name of the check. The format must be CHKTK_<checkname>_<mode>, where mode is PRT, ASM, or DRW.
TAB_<checkname>—Specifies the tab category in the Creo ModelCHECK report under which the check is classified. Valid tab values are:
INFO
PARAMETER
LAYER
FEATURE
RELATION
DATUM
MISC
VDA
VIEWS
MSG_<checkname>—Specifies the description of the check that appears in the lower part of the Creo ModelCHECK report when you select the name.
DSC_<checkname>—Specifies the name of the check as it appears in the Creo ModelCHECK report table.
ERM_<checkname>—If set to INFO, the check is considered an INFO check and the report table displays the text from the first item returned by the check, instead of a count of the items. Otherwise, this value must be included, but is ignored by Creo Parametric.
3. Add the check and its values to the Creo ModelCHECK configuration file.
4. Register the Creo ModelCHECK check from the Creo Object TOOLKIT C++ application.
* 
Other than the requirements listed above, Creo Object TOOLKIT C++ custom checks do not have access to the rest of the values in the Creo ModelCHECK configuration files. All the custom settings specific to the check, such as start parameters, constants, and so on, must be supported by the user application and not Creo ModelCHECK.
Was this helpful?