Creo ModelCHECK > RuleCHECK > Example: Using RuleCHECK
  
Example: Using RuleCHECK
The following example shows how RuleCHECK can be used to help you design a shell unit for a pressure vessel.
The shell.rule file contains the following rules:
Length—Soft
Diameter—Soft
Thickness—Hard
And the file looks like this:
# PTC Inc. RuleCHECK Rule File
#
# Note: The name of this file should be the same as the model
# type that the rules apply to with the suffix '.rule'
#
# Lines in this file which begin with '#' are considered
# comments. The format of the rules in this file is:
#
#
# (Hard or Soft)
#
#
# EndOfRule
#
# The 'EndOfRule' indicates the end of the description, and
# description lines should be no more than 80 characters long
#
Length
Soft
1.00
RANGE: 72" to 360" (modify in skeleton part).
Should use 12" increments to avoid extra offcuts.
Set Skeleton parameter "SHELL_LENGTH" to desired value.
EndOfRule
#
Diameter
Soft
1.00
RANGE: 48" to 166"
Must be in 3" increments, limited by manufacturing equipment.
Set Skeleton parameter "OD" to desired value.
EndOfRule
#
#Name of Rule#
Thickness
#Type of Rule (Hard/Soft)#
Hard
#Value (default value to be shown)#
1.00
#Design Guidelines which should be followed (this is displayed for this rule)#
RANGE: 1/2" to 2"
MINIMUM THICKNESS = P*R/(S*E-0.6*P)
NomThk = 1/8" + MINIMUM THICKNESS(or 1/2" MIN).
Modify Dimension "SHELL_THK" in the shell part to the desired value.
#Indicates end of this rule definition #
EndOfRule
#
The corresponding RuleCHECK report shows the names of the soft and hard rules. Select a name to see the description and the status of the rule if it is a hard rule. You can edit the status.