Working with Parameters

Parameters are key features that you use to create your design. To manage and constrain a parameter, you can use equations, define multiple values, or specify a minimum or maximum value.

Only the following parameters can be constrained:

  • Angle
  • Boolean
  • Integer
  • Length
  • Real
  • String

The three commands that let you constrain your parameters are accessible from:

  • The edition dialog box of the parameter.
  • The Experiment tab, if your parameter is a controller.

This task shows you how to:


Before you begin: Create or extract a parameter.

Write an Equation

You can write an equation to drive the value of a parameter.

In equations, you can use existing parameters to create a relation between the parameter to be constrained and an existing feature.

  1. In the work area, select > Add Equation .

    Experiment tab Edition dialog box

  2. In the Equation panel, enter a formula.

    Tips: From the tree:
    • Click an existing parameter to include it in the formula.
    • Click the Specifications node to list all the available parameters in the Equation panel.


  3. Click to apply the equation to your parameter.
    When a parameter is constrained by an equation, its value is grayed out in the work area and in the Graph Editor.

    For example, in the Experiment tab:

  4. To modify or remove the equation, click , and then select Edit Equation or Delete Equation .

Result:

Note: You cannot modify the value of a parameter driven by an equation.

However, if a range is defined for the parameter and the equation result is out of bounds:

  • An information message appears.
  • The minimum or maximum value of the range is applied instead of the equation result.

Define Multiple Values

You can specify predefined values for a parameter, and then select which value to assign.

Note: You cannot specify multiple values on Boolean parameters.

  1. In the work area, select > Add multiple values .

    Experiment tab Edition dialog box

  2. In the Value List panel, enter a value and press Enter to add it to the list.

    Tip: You can also click to populate the list.

  3. Click to validate.
    In the work area and in the Graph Editor, the list of values is added to the parameter.

    For example, in the Experiment tab:

  4. To modify or remove the predefined values, click , and then select Multiple values > Modify multiple values or Clear multiple values .

Result:

Note: If you specify a value for the Min or Max inputs of a constrained parameter and select a predefined value that is out of bounds, an information message appears.

Specify a Range

You can define a minimum and a maximum value for a parameter.

Note: You cannot specify a range on Boolean and String parameters.

  1. In the work area, select > Add range .

    Experiment tab Edition dialog box

  2. In the Range panel:
    • Select Set minimum to specify a minimum value and indicate if this value is included in the range.
    • Select Set maximum to specify a maximum value and indicate if this value is included in the range.
  3. Click to validate.
    In the work area and in the Graph Editor, a slider appears to let you specify a value for the parameter according to the defined range.

    For example, in the Experiment tab:

    Note: The slider appears only if both minimum and maximum values are specified.

  4. To modify or remove the predefined range, click , and then select Range > Modify range or Clear range

Result:

Important: If you define a range for a parameter and then specify a value for the Min or Max inputs of the parameter, the inputs values prevail and the range is updated accordingly.