Law Functions

Law Functions

This page discusses:

Signature

Law.Evaluate(Law, Real) : Real

Arguments

Name Input / Output Required? Type Comment
In Yes Law
In Yes Real

ReturnType

Real

Law.Evaluate()

Enables you to compute a law whether a Engineering Rules Capture or a Generative Shape Design Law and use the resulting data within another law.

Example

  1. Create a Generative Shape Design line.
  2. Create a first law. To do so, click .
  3. In the law editor, create two formal real parameters.
  4. Enter the law (Law.1) below into the editor:
    FormalReal.1 = 5*sin(5*PI*1rad*FormalReal.2)+ 10
  5. Click OK to add the law to the document.
  6. Repeat the same operation and enter the law (Law.2) below:
    FormalReal.1 = 3* FormalReal.2*Relations\Law.1.Evaluate(FormalReal.2)
  7. In Generative Shape Design, create a line parallel to the line created in step 1. Specify the law which is defined above in the Offset field.