Creating and Using a Law

You can create an Engineering Rules Capture law, which is a relation whereby a parameter is defined with respect to another. Both parameters involved in a law are called formal parameters. Formal parameters and laws are specifically designed to be used in the creation of shape design parallel curves. A Generative Shape Design law can be used in an Engineering Rules Capture law. Laws only specify a relation between one parameter and another single parameter. This task shows you how to create an Engineering Rules Capture law, then use a combination of a Generative Shape Design law and a Engineering Rules Capture law in the same relation.


Before you begin: You must have created a line.
  1. Click OK in the Law Editor dialog box.
  2. Click New Parameter of type to 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.
  3. Click OK to add the law to the document.
    The Law.1 feature is added to the tree right below the Relations node.
  4. Select your document root feature and re-access the Generative Shape Design app.
  5. Click Parallel Curve to create a curve parallel to the line created at the beginning of the scenario.
  6. In the Parallel Curve Definition dialog box, select the line that you previously created as the reference Curve.
    Important: Only positive laws, i.e. with positive values only, can be used when creating parallel curves (positive is to be understood as "strictly positive").
  7. Click .
  8. Click the Advanced Law type, click Law.1 in the tree and click Close.
  9. Click OK.
    A curve parallel to the selected one is created, taking the law into account.