Creating Functions from Sketches

You can create splines or curves in sketches and use them to define functions.

It is then possible to drive the position or an angle of a joint. For more information, see Using 2D Plots.


Before you begin: Open the Part Design app and create a sketch including a spline or a curve. For more information, see 3D Modeling | 3D Modeling Core | Part Design | Part Design | Creating Positioned Sketches.
Note: You can use curves that include multiple segments to create functions.
See Also
About Functions
  1. From the Mechanism section of the action bar, click Function .
  2. Select From Sketch as the function type to create.
  3. Optional: Modify the default name of the element.

    Tip: Click outside the field to update the name of the element in the tree.

  4. From Create in, select an option:
    OptionDescription
    Mechanism Creates the function in the current mechanism.

    In the tree, the function appears under the Functions node of the Model .

    Analysis Case Creates the function in the current analysis case.

    In the tree, the function appears under the Functions node of the Scenario .

    Tip: To compute function results in different analysis cases, create the functions in the current mechanism.

  5. In the Physical Quantities section, define the independent physical quantity of the function:
    1. From Independent, x, select a type of quantity for the input value.
    2. In the first field next to the Independent, x field, specify a value corresponding to the independent physical quantity in the sketch.

      Tip: You can use knowledge formulas to define the function parameters. To do so, right-click a parameter field and select Edit formula. For more information, see Using Knowledge Parameters and Formulas.

    3. In the second field, specify the corresponding function value for the independent physical quantity.

      The app converts the sketch units into function units. For example, if you specify 1mm as the length for the sketch value:

      • The default function value is 1s if you selected time as the independent physical quantity.
      • The app converts 1mm of the sketch into 1s as the value of the Dependent, F(x) function.


  6. Define the dependent physical quantity of the function:
    1. In the Dependent, F(x) field, select a type of quantity for the output value.
    2. In the first field next to the Dependent, F(x) field, specify a value for the independent physical quantity in the sketch.
    3. In the second field, specify the corresponding value for the independent physical quantity of the function.

    Tip: You can use knowledge formulas to define the function parameters. To do so, right-click a parameter field and select Edit formula. For more information, see Using Knowledge Parameters and Formulas.

  7. In the Definition section, select a sketch curve from the work area.
  8. Expand Scale and Offset, and then specify a value for the scale and offset of the x and F(x) variables.

    By default, the scale values correspond to 1 and the offset values correspond to 0. The offset values adapt to the respective x and F(x) scale values.

    Tip: You can use knowledge formulas to define the scale and offset values. To do so, right-click a parameter field and select Edit formula. For more information, see Using Knowledge Parameters and Formulas.