How to set the details of Solution Combination sheet with scripting?

Sean988
Member Posts: 2 **
in Structures
I need to use fatigue tool in ACT scripting, but I can't find the API to set the value of the Solution Combination sheet. like Time/Frequency data, combination factor
0
Answers
-
Hi @Sean988 Thanks for the question! I think you're after PyMechanical advice, is that correct? Or ACT advice? If you can provide some more information on where you've already looked and what you've tried, that will help a lot. Otherwise, I'll see if the @Structures-Scripting-Team can help.
0 -
You can use the following script to automate Solution Combination worksheet:
SCom = ExtAPI.DataModel.Project.Model.AddSolutionCombination() SCom.AddDirectionalDeformation() stat = ExtAPI.DataModel.Project.Model.Analyses[0] stat2 = ExtAPI.DataModel.Project.Model.Analyses[1] name = stat.Name name2 = stat2.Name #select analysis for combination SCom.Definition.SetBaseCaseAnalysis(0,stat) #add base case and select the analysis SCom.Definition.AddBaseCase(str(name2),stat2,1) SCom.Definition.SetBaseCaseTime(0,1) #set combination coefficients SCom.Definition.SetCoefficient(0,0,1) SCom.Definition.SetCoefficient(0,1,1)
More details can be found here:
https://ansyshelp.ansys.com/public/account/secured?returnurl=////Views/Secured/corp/v251/en/act_script/act_script_examples_solution_combinations.html?q=AddSolutionCombination0