[D0005] All case create mesh

 

Create mesh for all cases if the case does not have a mesh.

import designer

app = designer.GetApplication()
study = app.GetCurrentStudy()
numCase = study.GetDesignTable().NumCases()

for case in range(0, numCase):
	study.SetCurrentCase(case)
	if study.HasMesh() == False:
		study.CreateMesh()

Download Python source code

How to use script file

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