Importing .CSV Files into SOLIDWORKS Simulation Design Studies

Article by Lauren McGarry on Jan 26, 2024

Design Studies are a tool in SOLIDWORKS Simulation that allows us to evaluate or optimize designs by seeing how they perform when selected parameters are changed. These parameters can be model dimensions, global variables, Simulation or Motion study properties, or materials applied to bodies.

A .csv file can be exported and imported from the Table View tab of a Design Study containing a list of scenarios, parameters, and the values of those parameters in each scenario. A .csv file is a text file used for tables in which values are separated by commas. 

Importing a .csv file will only populate the Variables section of the Design Study. To run it, first, set up the Constraints section and, if you have SOLIDWORKS Simulation Professional and the Optimization checkbox is checked, the Goals section. It is also necessary to define the parameters before importing a .csv. If the parameters referenced in the table do not exist in the model, the import will fail.

How to Format a Design Table .CSV

In their online Knowledge Base, SOLIDWORKS provides this example as a guide to how to format a .csv file that you want to import into a Design Study: 

Design Set, 6, 3

Parameters, Status, Parameter1, Parameter2, Parameter3

Units, , N, N, N

Scenario 1, 1, 1, 2, 3

Scenario 2, 1, 2, 3, 4

Scenario 3, 1, 3, 4, 5

Scenario 4, 1, 4, 5, 6

Scenario 5, 1, 5, 6, 7

Scenario 6, 1, 6, 7, 8 

When opened in Excel, it looks like this:

Example SOLIDWORKS Simulation Design Study .csv in Excel

Figure 1: Example Design Study .csv in Excel

Let's break down some of these values, specifically ones that will need to be modified for an individual Design Study.

Importing .CSV Files into SOLIDWORKS Simulation Design Studies

  1. "6" here is the number of scenarios.
  2. "3" here is the number of variables.
  3. In the second row, after two cells with the words Parameters and Status in them, we'll enter a list of parameters. Parameter1Parameter2, etcetera, should be replaced in the .csv with the actual names of the parameters.
  4. Below the parameter names are the units associated with those parameters. In the example above, those units are newtons (N).
  5. The Status column determines whether the scenario is active. 1 corresponds with the scenario being active/checked, and 0 corresponds with it being inactive/unchecked. All scenarios will be imported regardless of their status.
  6. The columns below the parameter name contain the values of that parameter in each scenario.

Cantilever Bracket - Example 

Let’s apply this to an example using the Cantilever Bracket part from SOLIDWORKS' Shape Optimization Through Design tutorial.

SOLIDWORKS Simulation Tutorial Cantilever Bracket

Figure 2: SOLIDWORKS Simulation Tutorial Cantilever Bracket

We want to run a series of scenarios in a Design Study to evaluate how this part performs when the triangular cutout in the center changes size. The size of the cutout is controlled by three sketch dimensions.

SOLIDWORKS Simulation Sketch Dimensions Controlling the Center Cutout Size

Figure 3: Sketch Dimensions Controlling the Center Cutout Size

The first step is to create parameters linked to each dimension. New parameters are created and edited in the Parameters dialog box, accessible via Insert > Design Study > Parameters.

Parameters Dialog SOLIDWORKS Simulation Model Dimensions

Figure 4: Parameters dialog

With the parameters defined, we can create our .csv file.

Table with SOLIDWORKS Simulation Design Study Variable Data

Figure 5: Table with Design Study Variable Data

Reviewing the table above, we can tell that this Design Study will have thirteen scenarios and three parameters. All thirteen scenarios are active. The parameters are named DV1, DV2, and DV3, and the units of all three are mm. 

Save the table as a .csv. To import it into a Design Study, create a new Design Study by right-clicking an existing tab at the bottom left corner of the SOLIDWORKS window and selecting Create New Design Study.

Create New Design Study Option in SOLIDWORKS Simulation

Figure 6: Create New Design Study Option

In the Design Study, go to the Table View tab and click the Open icon.

SOLIDWORKS Simulation Design Study Table View Tab

Figure 7: Design Study Table View Tab

Browse to the .csv file and open it. Doing this will populate the Variables section with information from the .csv table.

SOLIDWORKS Simulation Study Variable Section of Table View with Data from .csv File

Figure 8: Variable Section of Table View with Data from .csv File

With all the variable data loaded, we can run the study.

I hope you found this tutorial for importing .csv files into SOLIDWORKS Simulation design studies helpful. Check out more SOLIDWORKS Simulation tips and tricks listed below. Additionally, join the GoEngineer Community to participate in the conversation, create forum posts, and answer questions from other SOLIDWORKS users. 

More SOLIDWORKS Simulation Tutorials 

Winter Beehive Analysis Using SOLIDWORKS Flow & Thermal Simulation

How to Use the SOLIDWORKS Simulation Probe Tool

SOLIDWORKS Motion Study: Add a Torsional Spring

SOLIDWORKS Simulation Mesh Convergence in Frequency Analysis

What is Topology Optimization - SOLIDWORKS Simulation

VIEW ALL SOLIDWORKS SIMULATION TUTORIALS

 

About Lauren McGarry

Lauren McGarry is a Certified SOLIDWORKS Expert based out of San Diego, California. She earned her Bachelor of Science degree from Case Western Reserve University and has been with GoEngineer as a Technical Support Engineer since 2016.

View all posts by Lauren McGarry