Using Geometry to Create a Formula

You can create a formula based on geometry.


Before you begin: Make sure you have checked Keep link with selected object (Tools > Options > Infrastructure > 3D Shape Infrastructure > General.)
Related Topics
Creating a Formula
  1. Create a Product containing a 3D Shape called MyNewRepresentation.

  2. Double-click the representation. Click and select Shape > Generative Shape Designworkbench.

  3. Add a line to this representation.

  4. Select Insert > Insert New Representation and click the root Product. In the Representation window, select 3D Shape and click Next. Enter the name of the representation MySecondRepresentation and click Finish

  5. Double-click the second representation and add a Length parameter to the representation and a formula that will be based on the line.


    • Click The Formula Editor opens. In the New parameter of type scrolling list, select Length and click New parameter of type.
    • In the Edit name or value of the current parameter field, enter the name of the parameter: LineLength. Click Apply and click Add Formula. The Formula Editor opens.
    • Enter the following formula by using the Dictionary to access the length(Curve,...) operator:LineLength=length() .
    • Position the cursor between the parenthesis and double-click the Line in the geometry or in the specification tree. The External parameter selection window is displayed.
    • Click Line.1 and click OK.
    • Click OK when done. Click Yes in the Automatic update window. The formula is created.