*Forces* defined using the Live Parts for SOLIDWORKS Add-in may have static values for the magnitude and direction elements, but you can also use the Add-in's built-in expression language to define *Forces* that incorporate time and direction.

For example, the following expression defines a *Force* whose magnitude increases as a step function over time. When the time transitions from 500 to 501 cycles, the *Force* magnitude jumps from 200 to 400, and when the time transitions from 700 to 701 cycles, the *Force* magnitude jumps from 400 to 600.

- "(t < 500) ? 200 : (t < 700) ? 400 : 600"

Users can also define a *Force’s* direction as a set of time variant expressions. For example, the following expressions create a circular oscillating *Force* in the Y/Z plane.

- X: "0.0"
- Y: "-1.0*cos(0.4*t)"
- Z: "1.0*sin(0.4*t)"

Live Parts uses the exprtk expression library. To define *Force* values as expressions, enclose the expression text in quotes. Otherwise, Live Parts expects *Force* values to be in the form of numbers.

**Defining Dynamic Forces in SOLIDWORKS:**

- Follow the steps as outlined in our
**Defining a Force**page. - During Step 3 in the Axis Method or Step 5 of the Sketched Entity method, instead of entering a value for the
*Force*, enter an expression using the guidelines above.

While dynamic *Forces* can be pre-defined in your Live Parts model within SOLIDWORKS, you can adjust the *Forces* dynamically during the Live Parts growth process by checking the Force Override box and using the corresponding sliders in the Controls Toolbar while in Advanced Mode in Live Parts. For more information, please visit the **Controls Toolbar: Advanced Mode** article.

## Comments

0 comments

Please sign in to leave a comment.