Create a Variable Selection Definition
You can create empty variable selection definitions, to later
add rules.
-
From the
Behavior Authoring section of the
action bar,
click
Variable Selections
.
The
Variable Selections dialog box appears.
-
In the
Variable Selections dialog box, click
Add Selection.
The
Variable Selection Definition dialog box appears.
-
In the
Variable Selection Definition dialog box:
-
In the
Name of variable selection box, enter the
name of the variable selection definition, in this scenario enter
MyVariableSelection.
- Optional:
In the
Comment (optional) box, enter a comment or
description of the variable selection definition.
-
To let this variable selection override selections with the same
name found on lower hierarchical levels, activate
Override variable selections in base
classes.
By default, this option is activated.
-
Do any of the following.
- Click
OK to create the variable selection
definition and close the dialog box.
- Add rules to the
variable selection by clicking
Add Rule. See next subtask.
Add Rules to a Variable Selection
You can add rules to a variable selection definition. There
are rules for matching variables, but also for how to present the result in the
Variable Browser.
Before you begin: You have defined at
least one variable selection.
-
If the
Variable Selections dialog box is not already
displayed, from the
Behavior Authoring section of the
action bar,
click
Variable Selections
.
The
Variable Selections dialog box appears.
-
Click a variable selection.
-
To add a rule to it, click
Add Rule.
The
Rules for Matching section appears.
-
In this section, do the following:
-
In the
Variable name boxes, enter one or two
variable names to match.
If you want to match more variables, add new rules.
Note:
To create examples in
Examples:
- Enter, in the
first box,
phi, click
Next > and then
Finish to create Example 1.
- Enter, in the
first box,
phi, and, in the second box
tau, then click
Next > and then
Finish to create Example 2a.
-
To limit the selection to specified components, activate
In one of these components and, in the
boxes, enter one or two components.
If you want to match more components, add new rules.
-
To limit the selection to component of specific classes,
activate
When the model of the component is and
enter the class by typing or use
Browse.
If you click
Browse you can select from the available
packages, and you have search possibility.
-
To limit the search to also matching variable descriptions,
activate
And when the variable description
matches and enter the description string to match.
-
Click
Next >
A section that enables you to create new sections in
the
Variable Browser appears.
-
To create an additional heading, activate
Additional heading and type the heading.
-
To include the path in the new section, activate
Variable path.
To create Example 5:
- Set the variable
name to
phi (Step 4a).
- Activate
Variable path.
To create Example 6:
- Create one
selection with the following rule:
- Set the
variable name to
phi (Step 4a).
- Click
Next >.
- Activate
Additional heading and enter the
name
Angles.
- Activate
Variable path.
- Click
Finish.
- Add a new rule
to the selection. To create the rule:
- Set the
variable name to
tau.
- Click
Next >.
- Activate
Additional heading and enter the
name
Torques.
- Activate
Variable path.
- Click
Finish.
-
Click
Finish.
Edit a Variable Selection Definition or a Rule
You can edit variable selection definitions and rules.
Before you begin: You have defined at
least one variable selection.
-
If the
Variable Selections dialog box is not already
displayed, from the
Behavior Authoring section of the
action bar,
click
Variable Selections
.
The
Variable Selections dialog box appears.
-
To edit a variable selection definition, click the definition
and then click
Edit
The
Variable Selections dialog box appears to let
you edit the present definition the same way you created it. See the first task
above for the editing.
-
To edit a rule, click the rule and then click
Edit
The
Rules for Matching dialog box appears to let
you edit the present rule the same way you created it. See the task above for
the editing.
-
To delete a variable selection or a rule, click and then click
Delete.
|