Controlling Relations Update

This task shows you how to work with relations in Synchronous and in Update relation at global update command modes.

This task shows you how to:


Before you begin:


  • Create a 3D Shape representation and create 2 points.
  • Create 2 Length type parameters.
  • Valuate the first parameter and constraint the second Length parameter by the following formula: Length.2=distance (Point.1, Point.2)+Length.1
  • Make sure you have selected Manual in the Update field of the General tab in the Tools > Options... > Infrastructure > 3D Shape Infrastructure category.

Update a Formula

You can update a formula.

  1. Expand the Relations node, right-click Formula.1 and select Properties.

  2. In the Properties window, unselect Update relation at global update. Click OK to validate.

  3. Double-click Length.1. The Edit parameter window is displayed. Enter 50 in the value field. Click OK to validate. The value of Length.2 is updated automatically and an update icon is displayed indicating that the update will be relaunched at the global update.

  4. Right-click Formula.1 and select Properties.

  5. In the Properties window, unselect Synchronous and select Update relation at global update check box. Click OK to validate.

  6. Double-click Point.2 in the specification tree or in the geometry.

  7. Enter the following values in the Point Definition window and click OK when done:



    The Formula is not updated and an update icon is displayed next to the formula.

  8. Right-click Formula.1 and select Local Update. The formula and Length.2 are updated.

Update an Equation

In this example, you change 3 parameters, a, b and c before solving the equation. If you use the Synchronous mode, an error is displayed when modifying the parameters values because the update is launched at each modification. To ensure the stability of the equation, the update must be launched after the 3 parameters are changed. Thus you need to select Update relation at global update

  1. Create 4 real type parameters, a, b, c, and x. x is a parameter valuated by an equation based on the other 3 parameters (a, b, and c).

  2. Valuate the parameters. a =1. b=2. c=1.

  3. Create a set of equation and enter the following equation: a*x**2+b*x+c==0. Click Parse and use the left arrow to move the parameters to the Constant parameters column. Click Solve when done.

  4. Expand the Relations node (if need be), right-click the Set of Equations and select Properties.

  5. In the Properties window, select Synchronous. Click OK to validate.

  6. Double-click a in the specification tree. The Edit Parameter window is displayed. Enter 2 in the value field. A message is displayed indicating that the equation cannot be solved and click OK.

  7. Click Close.

  8. Right-click the Set of Equations and select Properties.

  9. In the Properties window, unselect Synchronous and select Update relation at global update. Click OK to validate.

  10. Double-click a in the specification tree. The Edit parameter window is displayed. Enter 3 in the value field. Click OK.

  11. Double-click b in the specification tree. The Edit parameter window is displayed. Enter 5 in the value field. Click OK.

  12. Double-click c in the specification tree. The Edit parameter window is displayed. Enter 2 in the value field. Click OK.

  13. Right-click the equation in the specification tree and select Local update. The equation is updated as well as the x value. For the equation to be solved, the Update relation at global update command option must be checked and the relation must be either integrated to the global update or updated manually using Local Update.


    • For a given relation, it is possible to determine that it only executes in Synchronous mode using the Edit > Properties command. Its evaluation can then be launched manually. The Synchronous mode enables you to create synchronous relations, that is to say relations that will be immediately updated if one of their parameters is modified. Relations based on parameters are the only ones that can be synchronous.

    • For a given relation, it is also possible to decide that its evaluation will be launched when the part is updated (Update relation at global update command). The relations can be asynchronous for 2 reasons:
      • You want the relation to be asynchronous
      • The relation contains geometry.
    • It is possible to change the update mode of a relation after it is created. To do so, right-click the relation in the specification tree and select Properties and select Synchronous or Update relation at global update check box.