-
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: If need be, 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 you how to create a rule that retrieves the
abscissa of a point and, depending on the coordinate value, displays a 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\KnowledgewareEngineeringRulesCaptureSamples
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). If need be, 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, you can 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.