Creating and Using a Law

You can create an Engineering Rules Capture law, which is a relation in which a parameter is defined with respect to another. Both parameters involved in a law are formal parameters.

Formal parameters and laws are specifically designed for creating parallel curves.

You can use a Generative Shape Design law in an Engineering Rules Capture law. Laws only specify a relation between one parameter and another parameter.


Before you begin: Create a line.

Context: This task shows you how to create an Engineering Rules Capture law, and then use a combination of a Generative Shape Design law and a Engineering Rules Capture law in the same relation.

  1. From the secondary area of the Knowledge Essentials section of the action bar, click Law .
  2. Create the law.
    1. Enter a descriptive Name of Law and, optionally, a Description.
    2. Click Destination and select a node or an object in the tree under which you want the law to appear.
    3. Click OK.
    The law appears under the selected node or object. Its name is Law.n, where n increments automatically depending on the number of existing laws.
  3. In the Law Editor, click New Parameter of type and create two real type parameters FormalReal.1 and FormalReal.2.

    For example, enter the law below into the editor: FormalReal.1 = 5*sin(5*PI*1rad*FormalReal.2)+ 10.

    Note:
    • You can use the following keyboard shortcuts in the editor:
      • Ctrl+Z: Undo. Lets you delete the last word you entered.
      • Ctrl+Y: Redo.
      • Ctrl+F: Search in text.
      • Ctrl+A: Select all.

  4. Click OK to add the law to the document.
  5. Select your document root feature and reaccess the Generative Shape Design app.
  6. Click Parallel Curve to create a curve parallel to the line created at the beginning of the scenario.
  7. In the Parallel Curve Definition dialog box, select the line that you previously created as the reference Curve.

    Important: Only positive laws that is with positive values only can be used when creating parallel curves (positive is to be understood as "strictly positive").

  8. Click .
  9. Click the Advanced Law type, click Law.1 in the tree and click Close.
  10. Click OK.
    A curve parallel to the selected one is created, taking the law into account.