-
From the Component Browser or from the diagram,
right-click the relevant component and select Edit Modelica
Parameters
.
The dialog box for editing the component parameters appears to let you
edit the component parameters and some other modifiers.
-
In the dialog, click the small triangle after the field of the parameter you want to propagate and select any of the following
commands:
- Propagate <parameter name> to ensure that
you use a previous propagation of the same parameter from another component
of the same class, if any.
- Propagate to be able to change the name of the
parameter to propagate to, even if the parameter is already propagated from
another component of the same class.
A Propagate dialog box is displayed, except if the
command Propagate <parameter name> in used in a
case where the parameter already has been propagated from another component of
the same class. In the latter case, the binding equation is added without any
previous dialog box.
- Optional:
If need be, you can change the propagated parameter. To have
all the options, edit it in the Parameter and Variable
Editor rather than in the Propagate
dialog box. For further information, see Defining Parameters and Editing Properties of Parameters.
Note:
If you just want to propagate the parameter, you do not have
to change anything.
-
Click
OK.
The binding equation appears in the parameter value field.
-
Click
OK.
The parameter is propagated to the
surrounding class. A binding annotation is created automatically.
|