This element creates a non modifiable parameter which value is computed using a mathematical formula that can reference other model elements.
See PARAM. The FORMULA_PARAM attribute does not have the persistent attribute since its value is computed automatically.
Name | Value Type | Default Value | Description | Comment | V. | Exp. |
---|---|---|---|---|---|---|
formula |
Empty. |
Mathematical formula to compute the parameter. |
The formula can reference any parameter, curve or surface available in the data model. Teh value of the parameter is modified anytime one of the referenced items changes. |
1.6 | ||
Events | ||||||
value_changed |
the event is triggered anytime the value of the object has changed. |
2.0 |
The code below creates a parameter ("f_param")which is computed from the value of another ("variable"):
<PARAM id="variable" min="0" max="10" default="0"/> <FORMULA_PARAM id="f_param" formula="cos(variable)"/>