Users can operate almost every feature in JMAG through scripts. Although the JMAG website previously restricted access to sample scripts to authenticated users, we would now like to make this library available to everyone.
Most of the sample scripts written in Python are easy to use with some general programming knowledge. In addition, we are also releasing instructional materials that describe various scripting methods alongside usage examples. These materials should give even those new to JMAG confidence to use the scripting tools to easily automate and streamline analyses and design processes. Going forward, we will continue to enhance this library so that everyone can realize more flexible workflows through scripts.
JMAG Script Library
-
[S8553] Script for performing assembly circular pattern copying in the Geometry Editor
The following is an example of a script for performing an assembly circular pattern copy in the Geometry Editor.
-
[S8406] Script to launch multiple JMAG-Designers
The following is an example of a script that launches multiple JMAG-Designer instances.
-
[S8432] Script to obtain the setting value of conditions with unknown condition names and indexes
The following is an example of a script that obtains the setting values of conditions whose names and indexes are unknown.
-
[S8366] Script for manipulating the perspective of the model display
The following is an example of a script that manipulates the perspective of the model display.
-
[S9210] Script to create a DC superimposed current sequence and set it as the current condition
I want to create a DC superimposed current sequence using a script and set it as the current condition.
-
[D0003] Add current condition to coils
Set a current condition on all parts named "Coil" in the current study.
-
[S8455] Script to change the background color
The following is an example of a script that changes the background color.
-
[S8384] Script to check the number of jobs that have not been completed in JMAG-Scheduler
The following is an example of a script for checking the number of jobs that have not been completed in JMAG-Scheduler.
-
[S8356] Script for running analysis by specifying a folder using JMAG-Scheduler
The following is an example of a script that uses JMAG-Scheduler to specify a folder and execute analysis.Open in JMAG-Designer the model that contains the study to be calculated using JMAG-Scheduler in advance, and then run it from the script editor.
-
[S8333] Script to FFT and output csv
I want to automate the process of performing FFT on the results and outputting them as a CSV file.
-
[S8467] Create a project file in the folder containing the script.
I want to create a project file in the folder where the script is located using a script.
-
[S8389] Script to obtain vertex coordinates from the Geometry Editor
The following is an example of a script that obtains the coordinates of vertices in the Geometry Editor.
-
[S8507] Script to output a result table of nodes with nodal forces above the threshold value
The following is an example of a script that outputs a result table of nodes with nodal forces above the threshold.
-
[S8458] Script to obtain the coordinates of the vertices of parts
The following is an example of a script that obtains the coordinates of the vertices of parts.
-
[S8360] Script to check the storage location of project files (.jproj)
The following is an example of a script that checks the storage location of project files (.jproj).
-
[D0002] Run all studies
Run all studies in the project.


