Creating a Formula

You create a formula to define or constrain a parameter.


Before you begin: Select Relations in Me > Preferences > Common Preferences > Object Properties > 3D Shape > Display formulas.
  1. From the Knowledge Essentials section of the action bar, click Formula .

    Tip: You can also select a parameter in the tree and in the shortcut toolbar, click Formula .

    The Parameters and Relations dialog box displays all existing parameters or, if you selected a parameter before clicking the command, only parameters of the same type as the selected parameter.

    For more information on the components of the panel, see About the Parameters and Relations Panel.

  2. Optional: Expand Parameter, and refine the list of parameters.
    1. In the list of types, select a type to filter out parameters.
    2. Use the search bar to find a parameter.

    Tip: You can create parameters from the dialog box. Below the list of existing parameters, select a type and click Add New Parameter .

  3. Select a parameter.
  4. In the Relations column, click Add Formula .



  5. In the Formula Editor, create your formula.    
    1. In Dictionary, select the type of formula that you want to create.
    2. Double-click the functions or methods.
    3. Enter your formula.
    4. Click OK.
    5. Specify whether you want the relation to be updated at the global update.

Example

This example shows you how to create a formula specifying that the external radius of a hollow cylinder is twice as large as its internal diameter. A formula can also define the radius of a sketch when the formula is a constraint.

  1. Create a pad.
  2. Click Formula .
  3. Select Volume and click Add New Parameter .
  4. Double-click Volume.1 and enter smartVolume(PartBody\Pad.1.
  5. Click OK > No.