SOLIDWORKS: Managing your design using Global Variables and Equations

EmailFacebookGoogle+LinkedInTwitterShare

Here we go again - SOLIDWORKS is making it easy for you by using Global Variables and Equations.

Global Variables are independent variables that can be set to any numeric value.

Equations are used to create mathematical relationships between dimensions.

Let's go ahead and create some. There are two ways you can do this.

Here is the first way. If you know your design intent, setup those Global variables first.

We'll start by making a simple rectangular plate. "A" will be our width, "B" the length and "C" the thickness.

In a part file, click Tools, Equations.

Apr blog 1

Set your variables by clicking in the Add global variable cell, type the letter A and hit enter or the tab key. Type 50 after the equals (=) sign, hit enter/tab and that will prompt you to enter comments. Repeat the process for B=100 and C=5.

Apr blog 2

Click OK. An Equations folder becomes visible in the FeatureManager design tree. Expand the folder to see Global Variables.

Apr blog 3

Now let's assign our dimensions to the variables to create our equations. Draw a rectangle in a sketch and dimension a vertical line. In the modify box type an equal sign, hover over Global Variable and select A(50). Click the green check mark and now your 50mm is a Global Variable.

Apr blog 4

Apr blog 4c

Apr blog 4a

Click the green check mark again and repeat for the B value (one of the horizontal lines). You will notice both dimensions now have the epsilon symbol.

Apr blog 4b

Let's extrude this 5mm and assign this value to our C Global Variable. For the depth, type equal sign and select C(5). Click green check. There you have it, now we can manage our design with ease. Simply right click Equations folder and enter new values. Click Automatically rebuild to have all changes take effect immediately. If this is not checked, you will need to rebuild yourself.

  Apr blog 8

Here is another way we can do it. This way will create the Global Variable and the Equation all at once.

Create another Rectangular plate, working in the sketch, draw a rectangle and smart dimension a vertical line. In the modify box type an equal sign and A. Click the Global Variable symbolApr blog 9aand enter your value (in this case 50) and click the green check mark.

Apr blog 9Apr blog 10

Right click equation folder and take a look. Global Variables and Equations are both created.

SOLIDWORKS wants you to focus on your design and not the software.

 

Roger Ruffin

Application Engineer

Computer Aided Technology, LLC

CATI 15 Logo color with text 270x65