Creating global variables for all of your parts in SOLIDWORKS


When creating a global variable for a part file it has limited use to the file it was created in. It is however possible to create a text file containing global variables and link that text file to multiple parts. Let's start by creating a text file. An easy way to make a text file is by right clicking the desktop or inside of windows explorer.


Then we will create some global variables to be used across multiple part files. In this case I have created three generic variables to illustrate the functionality. Save the file and we will link it in SOLIDWORKS.

Global 3

Open up the equations dialog box from the pull down menu tools -> equations. At the bottom the the dialog turn on the check box for "link to external file." Using the button with three dots in it, browse to the location of the text file you saved and the global variables will appear. Choose the "link" button and your SOLIDWORKS part is now linked to the text file.

Global 5

If you would like all of your future parts to be linked as you create them save this part as a template.


Jordan Nardick, Elite AE
Applications Engineer
Computer Aided Technology, Inc.

One comment on “Creating global variables for all of your parts in SOLIDWORKS

  1. This article helped me a lot! I had 2 existing parts with existing (separate) equation sets, that were too codependent to easily work on separately. I used the advice here to figure out how to merge the two sets of equations:

    1. Open the equations manager. Use the “export” button to export all the global variables to a text file. Repeat for each part.
    2. Copy & paste the variables into a single merged text file (I just pasted the second into the first).
    3. Delete any duplicate variables in the merged file.
    4. In each part, open the equation manager again and click the “import” button. Select & import the merged text file.
    5. At the bottom of the equation manager window, there’s a checkbox that says “automatically rebuild”. I believe this means to update the part as soon as the dimensions in the text file are changed. You can manually update the part values from the text file, by clicking the traffic light icon next to this option.

Comments are closed.