-
From the Compass, click 3D Modeling Apps, and select Engineering Rules Capture.
-
Create the rule. To do so, do the following:
-
Click Rule
.
-
Enter a rule name.
-
Optional: Replace the default comments.
-
Optional: If you want to add the rule to be created to a
specific relation set,
specify a destination.
-
Click OK.
-
In the Rule Editor, enter your rule script.
Example
This example shows how to create a rule that retrieves the abscissa of a point.
Depending on the coordinate value, it displays one message or another. It uses two
special functions allowing you to retrieve the coordinates of a point. These
functions can be accessed from the Measures item of the Dictionary.
Import and open the Sample1.3dxml file located in the startup\Knowledgeware EngineeringRulesCaptureSamples directory.
- From the Compass, click 3D Modeling Apps, and select Engineering Rules Capture.
- Click Formula
to create three Length type parameters:
Point5X, Point5Y, and
Point5Z.
- Click Rule
. Enter a
rule name (MeasureRule for example).
- Replace the default comments.
- If you want to add the rule to be created to a specific relation set,
specify a destination.
- Click OK.
- Enter the rule below in the editor.
- In the rule, retrieve the Point.5 definition (PartBody\Point.5) by
double-clicking the feature in the tree.
- Click OK. The message Point.5 abscissa is:
xxxmm appears.