We work with design automation and optimization and, to my knowledge there is no api access to the design study.
What are your actually trying achieve? What does you add-in need to do in the end? Maybe we can suggest a different route.
I'm looking for a way to further evaluate the results of an evaluation study in the following way:
- run static simulation for a part and generate several plots
- run design evaluation study based on the static simulation, while varying one parameter of the part
- save images of plots for each generated part from the evaluation study
To save the images, I'd have to be able to go through all parts of my evaluation study.
If you are only sweeping on a single parameter it should be fairly easy to create a macro that changes that one parameter, runs a study and exports the plots.
What i would do is to set the parameter up as global variable and change it with the equation manager api :2017 SOLIDWORKS API Help - Add and Modify Equations Example (C#)
Then i would retrieve and run the study with these: 2017 SOLIDWORKS API Help - StudyManager Property (ICWModelDoc) and 2017 SOLIDWORKS API Help - GetStudy Method (ICWStudyManager)
Here is an example where they run a static study and create a plot: 2017 SOLIDWORKS API Help - Create Plots for a Static Study Example (C#)
I don't know off the top of my head how you would go about exporting the plot, but i'm sure it is possible. At the very least you should be able to make your add-in take a screenshot and use that
Also i would just like to do a shameless plug for our addin CORTIME. Among other things, it allows you to set up the the parameter sweep in second. Unfortunately it cannot export the plots for you yet. (It is on the list though)