Unlock the power of parametric modeling in SolidWorks by using equations. Learn how to define global variables and create mathematical relationships between dimensions to build intelligent, easily updatable designs.
You can open the Equations manager in two main ways: Go to the main menu and click Tools > Equations, or right-click the Equations folder in the FeatureManager Design Tree and select Manage Equations.
In the Equations dialog box, under the Global Variables section, click in an empty cell. Type a name for your variable (e.g., `"Overall_Width"`), press Tab, and enter its value (e.g., `100`). Press Enter to confirm.
While editing a sketch or feature, double-click the dimension you want to control. In the Modify dialog box, type the equals sign (`=`). A dropdown menu will appear. Select Global Variables and choose the variable you created. The dimension will now be driven by this variable.
You can also link dimensions directly. Double-click a dimension to modify it, type `=`, and then click on another dimension in the graphics area. This will insert its name (e.g., `"D1@Sketch1"`). You can then add mathematical operators, like `"D1@Sketch1" / 2`.
Use the different views in the Equations dialog (Equation View, Dimension View, Ordered View) to organize and understand the relationships in your model. A red sigma symbol (∑) next to a dimension indicates it's driven by an equation.
Advanced Tips for SolidWorks Equations
Incorporate `IF` statements into your equations to create more intelligent parts. For example, `"Hole_Size" = IF("Overall_Width" > 150, 10, 5)` will change the hole size based on the part's width.
You can link your equations to an external text file or Excel spreadsheet. This is powerful for managing complex designs or creating multiple configurations from a single source of data.
In the Equations dialog, use the 'Comments' column to document the purpose of your variables and equations. This is crucial for collaboration and for understanding your own design intent later.
Right-click the Equations folder in the FeatureManager Design Tree and select Add Folder to group related equations, keeping your design tree clean and organized.
Explore other SolidWorks guides and shortcuts