-
From the
Compass, click
3D Modeling
Apps
,
and select
Engineering Rules Capture.
-
Create a check. To do so, do the following:
-
Click
Check
.
Note:
You may also create a check by clicking the relation set in
the tree and clicking
Check
.
-
In the
Check Editor dialog box, enter a new name.
-
If needed, add some comments to the
Description box.
-
If you want to add the check to be created to a specific
relation set, specify a destination.
By default, the check is created right below the Relations
node.
-
Click
OK.
-
Select the type of check: Silent, Information or Warning.
-
Enter the message you want to be displayed in the information or
warning box if the check is not verified.
-
Enter the check statements in the editor
-
Click
Apply to test your check syntax and
OK.
Notes:
- If you access a feature attribute in a check, the modification of the attribute value does
not start a new evaluation of the check. Only parameter modifications
(parameters available in the Formula editor) start a
new evaluation of the check.
- Checks can be upgraded. Like with other objects using computation
algorithms, the upgrade command switches all algorithms used in expressions to
the last available version of algorithms. When the relation is modified
explicitly, it is automatically upgraded.
Example
Import and open theSample2.3dxml file located in the startup\Knowledgeware\EngineeringRulesCaptureSamples
directory.
- From the
Compass, click
3D Modeling
Apps
,
and select
Engineering Rules Capture.
- Create a
Length
type
parameter called
Line_Length.
- Click
Formula
. Click
Line_Length
in the
tree,
click
Add
Formula and enter:
Length(PartBody\Line.1)
. Click
OK twice when done.
- From the
Compass, click
3D Modeling
Apps
,
and select
Engineering Rules Capture.
- Click
Check
. The
Check Editor dialog box appears.
- Replace the default name with Cylinder_Check. Add comments to the
Description box. If you want to add the check to be
created to a specific relation set, specify a destination. The check is
created right below the Relations node by default.
- Click
OK. The
Check Editor appears.
- Select a type of check. Enter the message you want to be displayed
in the information or warning box in case the check is not verified.
- Enter the check statements in the editor:
Line_Length > 16mm
- Click
Apply to test your check syntax. If the
information message appears, the check syntax is correct.
- Click
OK to add Cylinder_Check to the relations node
in the
tree.
If the line length is inferior to 16 mm, a red icon appears in the
tree
meaning that the check is not valid.