Creating and Using a Knowledge Advisor Law

You can create a Knowledge Advisor 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 a Knowledge Advisor law. Laws only specify a relation between one parameter and another single parameter. This task shows you how to create a Knowledge Advisor law, then use a combination of a Generative Shape Design law and a Knowledge Advisor law in the same relation.

  1. Click and select Shape > Generative Shape Design workbench.

  2. Select Tools > Grid > Work on Support to define a working support or click Work on Support .

  3. In the Work on Support dialog box, select the zx plane, for example, and click OK in the updated Work on Support dialog box without modifying any other parameter.

  4. Click Line . The Line dialog box is displayed.

  5. Right-click in the Point 1 field, and choose Create point.



  6. The Point Definition dialog box is displayed, the Point type and Plane fields being automatically filled.

  7. Create a point at H:0mm and V:0mm, and click OK.



  8. Repeat the operation, right-click the Point 2 field in the Line dialog box to create another point at H:100mm and V:0mm, then click OK in the Point Definition dialog box.

  9. Click OK in the Line dialog box to create the line.

  10. Access the Knowledge Advisor workbench and click Law . If need be, use the Tools > Customize command to access the icon. A dialog box similar to the one below is displayed. This editor is similar to the other relation editors. If need be, replace the default values specified in the dialog box fields.

  11. Click OK. The law editor is displayed. The right-hand part allows you to create the parameters to be used in the law. The left-hand part is the law edition box.

  12. Click New Parameter of type to create two real type parameters FormalReal.1 and FormalReal.2, then enter the law below into the edition window: FormalReal.1 = 5*sin(5*PI*1rad*FormalReal.2)+ 10

  13. Click OK to add the law to the document. The Law.1 feature is added to the specification tree right below the Relations node.

  14. Select your document root feature and re-access the Generative Shape Design workbench.

  15. Click Parallel Curve to create a curve parallel to the line created at the very beginning of the scenario. The Parallel Curve Definition dialog box is displayed.

  16. 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").

  17. Click Law .... The Law Definition dialog box is displayed.

  18. Click the Advanced Law type, click Law.1 in the specification tree and click Close.



  19. Click OK. A curve parallel to the selected one is created, taking the law into account.