Equations Not Working

     I am having a bit of trouble with using the equations in solidworks. The way that I know to use equations is to create a global variable, and then assigning that variable to something like the length of a line. Lets say I have created the variable "B" and assigned the value to be 40mm. Then I smart dimension a line and try to add the variable, the line just smart dimensions to 40mm, and not the "B" variable. I have looked through all the settings and couldn't find anything that would cause this, and I can't find anything online either.

SolidworksUser Interface
Answers 5
IF
IF 2018-02-23 Best Answer

Use this button to switch

Button is pressed

comment imagecomment imagecomment imagecomment image
GS
GS 2018-02-23
<p>Nathaniel Franklin wrote:</p><p></p><p> I am having a bit of trouble with using the equations in solidworks. The way that I know to use equations is to create a global variable, and then assigning that variable to something like the length of a line. Lets say I have created the variable "B" and assigned the value to be 40mm. Then I smart dimension a line <strong style="text-decoration: underline;">and try to add the variable,</strong> the line just smart dimensions to 40mm, and not the "B" variable. I have looked through all the settings and couldn't find anything that would cause this, and I can't find anything online either.</p>

When you try to add the variable, are you typing the Equal sign first, and if yes, do you not get the drop-down allowing you to select the global variable?

KC
KC 2018-02-23

Hello,

Here's a screen shot of what ​ mentioned:

Which will become this:

Because it's an equation, the completed dimension will look like this when done:

When you edit this dimension, you'll see what ​ posted:

As an alternative method, you can assign the line's dimension to the global variable (GV) while in the Equations dialog (I added a second line to show this):

Type an equal sign and select the GV from the list as shown above (or type the equal sign and click the GV name in the list of GVs):

I hope this helps.

Cheers,

Kevin

comment imagecomment imagecomment imagecomment imagecomment imagecomment imagecomment imagecomment imagecomment imagecomment imagecomment imagecomment image
VU
VU 2018-02-23

After all Global Variables are set, in Equation Manager place cursor on Global Variables area, click on dimension then place cursor on Value / Equation area and choice the GV you need to link:

comment imagecomment image
IF
IF 2018-02-23

Attention! Be ready to workaround bug with shifting of cut-list properties in case you have global variable. I`m waiting for SPR from my VAR.

Workaround is to select second item to get mass.

comment imagecomment imagecomment imagecomment image