Hide Table of Contents

Entering Equations

The Add/Edit Equation dialog box looks like a calculator keypad. Buttons on the keypad represent all supported operators, functions, and constants. You can expand and collapse the dialog box.

To populate the equation box, do any of the following:

  • Click a dimension in the graphics area to paste its name into the equation.

  • Click keypad buttons in the dialog box.

  • Click a global variable, custom property, or a linked dimension name in the Equations in the FeatureManager design tree.

  • Type from your computer keyboard.

Keep the following in mind as you enter equations:

  • Equations are solved left to right (that is, the dimension on the left is driven by the value on the right).

  • Dimension names must be in the form "<dimension_name>@<feature_name>" or "<dimension_name>@<sketch_name>". Dimension names must be enclosed in quotes.

Examples:

"D1@Base-Extrude"

"D5@Sketch2@crank-knob.Part"

When you enter a dimension name by clicking the dimension in the graphics area, the required quotes are automatically inserted. When you enter a dimension name by typing, you must type the quotes.

  • You cannot specify units of measure in equations. Equations use the units specified in Tools, Options, Document Properties, Units. For example, if the document length units are inches, then in the equation "D3@Sketch2" = "D2@Sketch2" +1, the 1 in the equation represents one inch. If you change the document length units to millimeters, the 1 now represents one millimeter.

  • You can add comments to equations to document your design intent. Click Comment or type a single quote () at the end of the equation, then enter the comment. Anything after the single quote is ignored when the equation is solved.

Example:

"D2@Sketch1" = "D1@Sketch1" / 2 ‘ height is 1/2 width

  • You can also use comment syntax to prevent an equation from being evaluated. Place a single quote () at the beginning of the equation. The equation is then interpreted as a comment, and it is ignored.

Related Topics

Edit Equations

Equations



Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   Entering Equations
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: SOLIDWORKS 2011 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.