Formulas: Other Operations

You can find information concerning the operations that can be performed on Formulas.

This page discusses:

See Also
About Parameters
Creating a Formula

Quickly Accessing Parameters Values in the Formulas Editor

A box enables you to change a parameter value when creating and especially editing a formula. This box is especially useful when you want to modify the value of a parameter valuated by a formula.

  • Double-click the parameter in the tree.
  • Click located next to the parameter value box. The Formulas editor opens.
  • In the relation body, select the parameter to be modified and change its value.

Using the Dimensions of a Sketch in a Formula

Unless sketch dimensions are declared as constraints, you cannot manipulate them as parameters in relations. This applies for example to the radius of a circular sketch or to the width and length of a rectangular sketch.

Editing or Modifying a Formula

There are 4 ways to proceed:

  • In the tree, right-click the formula to be edited, then select Formula object > Definition.
  • In the tree, double-click the formula to be edited.
  • In the tree, double-click the user parameter, then click in the Edit Parameter dialog box.
  • Edit a parameter, right-click the value box, then select Formula > Edit.

Displaying Only a Formula Definition in f(x)

Select a formula in the tree, then click Formula from the Tools section, the parameter list displays the constrained parameter, the formula activity and the parameters used as input in the formula.

Specifying a Measure in a Formula

  • Edit the parameter, right-click the value box in the parameter editor, then select Edit formula.
  • In the Formula Editor, click Wizard, select the Measures item in the dictionary then select one of the measure functions displayed in the wizard.
  • Fulfill the function prototype and allow for the required number of arguments. To enter an argument value, position the pointer where the argument is intended to be and capture the feature definition from the tree or from the 3D area.

Activating/Deactivating a Formula

There are three ways to proceed:

  • Click Formula from the Tools section. From the parameter list of the Formulas editor, select the formula/activity parameter and modify its value in Edit name or value of the current parameter box.
  • In the tree, right-click the formula whose activity is to be modified, then select Formula object>(De)Activate.
  • Edit the constrained parameter, right-click the value box, then select Formula>(De)Activate.

Importing Parameters and Formulas

  • Click Formula from the Tools section.
  • In the Formulas editor, click Import, then specify the import file path. The import file must be either a .txt file or an .xls file. The parameters and formulas are applied to the document. If the imported parameters already exist in the document, the document is automatically updated by the import process.

Deleting a Formula

There are three ways to delete a formula:

  • Click Formula from the Tools section.
  • From the parameters list of the Formulas editor, select the parameter that is constrained by the formula to be deleted, then click Delete Formula.
  • In the tree, right-click the formula to be deleted, then select Delete.
  • Editing the parameter. In the parameter editor, right-click the value box, then select Formula>Delete.
    Important: In the Formulas editor, the default step is 1 whatever the unit.