|
This scenario shows how to assign a value to a parameter
deducing it from a graphic selection. In this scenario, you are going to
deduce the value assigned to the Thickness parameter by selecting 2
circular edges. |
|
A common way to assign a value to a parameter
is to use the Edit name or value of the current parameter field
of the Formulas dialog box. But there is another way to proceed. The value
you assign to a parameter can be deduced from a graphic selection. |
|
-
Open the
KwrStartDocument.CATPart document.
-
Click Formula (). The f(x) dialog box is
displayed.
-
Select the Length item with Single Value
from the New Parameter of type list, then click New
Parameter of type.
The new parameter appears in the Edit name or value of the current
parameter field.
-
Replace Length.1 with Thickness, then right-click in the
value field of Edit name or value of the current parameter.
-
Select Measure Between... from the contextual
menu. The Measure Between dialog box is displayed. Select Edge only
as Selection 1 mode and Edge only as Selection 2
mode.
-
In the document geometry area, select successively one of
the inner circular edges of the part, then the outer circular edge
located on the same face. The 17.5 mm value is displayed in the Measure
Between dialog box.
-
Click OK when done in the Measure Between
dialog box. The 17.5 mm value is displayed in the Formulas dialog box.
-
Click OK to close the Formulas dialog box.
The parameter is displayed below the
Measure node in the specification tree and below the Parameters node.
To edit this parameter:
- Double-click it in the specification tree. The Edit Parameters
dialog box is displayed.
- Click the
icon located next to the value field. The Measure between dialog
box is displayed.
- Edit the parameter and click OK when done.
|
|
|