Model Analysis > Creo ModelCHECK > Configuring PTC Creo Modelcheck > Setting Up the Condition Files > Setting Up the Condition File: condition.mcc > To Set Up the condition.mcc File Using the Creo ModelCHECK Configuration Tool
To Set Up the condition.mcc File Using the Creo ModelCHECK Configuration Tool
1. Click adjacent to Conditional settings in the left pane of the ModelCHECK Configuration Tool dialog box.
2. Click Edit condition.mcc. A table listing all the conditions appears in the right pane of the ModelCHECK Configuration Tool dialog box. The check box for each condition allows you to specify whether Creo ModelCHECK should evaluate the condition or treat it as a comment.
3. In the Choose View box, select Conditions to edit the condition.mcc file.
4. Create or edit conditions for which different combinations of configuration files are to be used.
Select the check box in the Select column. When you clear the check box, a ! mark is added at the beginning of the condition in the condition.mcc file. The ! mark indicates that the condition is a comment.
Specify values for each of the following fields in order to create conditions:
Select—Select this check box to make the conditional statement active. Clear this check box for the statement to be a comment. A comment is indicated as an ! mark at the start of the line.
* 
Comments are also indicated by a # at the start of a line when you manually edit or create the condition.mcc file.
Name—Specify a name for the condition.
Check File—Specify the name of the check file to be used for the condition.
Start File—Specify the start file to be used for the condition.
Constant File—Specify the constant file to be used for the condition.
Status File—Specify the status file to be used for the condition.
Field—Select the item from the list to use in a condition. For example USERNAME, etc.
Exp—Select the operator to use in the condition. For example = (EQ), <=(LE) etc.
Value—Specify an appropriate value for the item.
For example, if you select a row and specify the following values:
Name
Check File
Start File
Constant File
Status File
Field
Exp
Value
DEFAULT
check_default.mch
start_finn.mcs
constant_def.mcn
status_1.mcq
USERNAME
EQ
finn
The following line is written to the condition.mcc file:
IF (USERNAME EQ finn) config=(check_default.mch) (start_finn.mcs) (constant_def.mcn) (status_1.mcq) (name/DEFAULT)
This means that the listed configuration files are run if the user’s login is finn.
Right click and select Add Row to add a row with a new condition. Select a row, right click and select Delete row to delete a condition.
Select and right click and use Move Row Up or Move Row Down to reorder the conditions.
Select a row, right click and select Add cell to specify an AND operator in the condition.mcc file and more than one start, check, constant, and status configuration file.
5. Specify the default combination of configuration files. If none of the conditions are true, Creo ModelCHECK uses the default combination, corresponding to the ELSE statement in the config_init.mc file.
6. In the Choose View box, select Override to edit the OVERRIDE CHECKS section of the condition.mcc file.
7. Specify conditions to override checks, if any, using the boxes or fields as applicable.
8. You can override the checks specified in the condition.mcc file for the current run as Error, Warning, Yes, or No.
9. Click or clear the check box in the COMMENT/UNCOMMENT column.
10. Click Save.