[D0001] Add magnetic field strength contour

 

Add magnetic field strength contour definition to the current study.

import designer

app = designer.GetApplication()

study = app.GetCurrentStudy()

contour = study.CreateContour("AddedByScript")
contour.SetResultType("MagneticFieldStrength")

view = app.View()
view.SetContourView(1)

Download Python source code

How to use script file

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