Creo ModelCHECK > RuleCHECK > Defining Rules
  
Defining Rules
RuleCHECK enables organizations to attach different rules to different types of models. RuleCHECK uses the RC_MODEL_TYPE parameter to determine which set of rules to associate with the model.
Each set of rules is stored in a separate file. These files can have any name, but must have a .rule extension.
In order to associate a model with a set of rules, the value of the RC_MODEL_TYPE parameter and the rule file name must be the same. The following table illustrates this:
RC_MODEL_TYPE
Rule File Name
Steel
steel.rule
Sheetmetal
sheetmetal.rule
Casting
casting.rule
By default, the rule files are stored in <creo-loadpoint>/modchk/text/<language>/rules.
 
* You must define the parameter RC_MODEL_TYPE in each model. You can check for the existence and proper definition of this parameter in the model using ModelCHECK.
RuleCHECK enables you to classify the rules into two categories, soft rules and hard rules.
Soft Rules
Soft rules are rules which offer design advice to users. These are typically general guidelines which do not need to be followed specifically.
Hard Rules
Hard rules are rules which offer design advice that must be followed explicitly. RuleCHECK attaches a status to each of these rules. The Creo users must sign off that these rules have been satisfied. The status of each rule can be set to one of three states:
Pending—The rule has been attached to the model, but it has not yet been applied. This is the default status.
Complete—The rule has been applied to the model. You can also add comments to the rules. When you set a rule’s status to complete, you have to sign off that the rule has been satisfied.
Override—The rule has been overridden. If you cannot satisfy a rule, you must document that you attempted to conform to the rule, but could not. In order to continue you must enter the reason for overriding the rule.
When Complete or Override are chosen, a comment window becomes available in which you can type information such as your name, date, and the reason why you are changing the status of the rule.
Status changes are written to the Creo Parametric model but are not written to the disk until the model is saved. Although the status is stored with the model, the only way for you to modify it is through RuleCHECK.