[D0002] Run all studies

 

Run all studies in the project.

import designer

app = designer.GetApplication()

count = 0
num = app.NumStudies()
while count < num:
	st = app.GetStudy(count)
	if (st.HasResult() != 1):
		st.Run()
	count = count + 1

print('This script ran %i studies.' %count)

Download Python source code

How to use script file

Use the JMAG Script Library after reading and agreeing to the following terms of use.