JMAG Script Library

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.

  1. [S8570] Script to remove duplicate nodes in the Geometry Editor

    The following is an example of a script for removing duplicate nodes in the Geometry Editor.

  2. [S8374] Script for specifying part colors and grouping parts

    The following is an example of a script that specifies part colors and performs grouping.

  3. [S8339] Script to add cases with different current amplitude values and output the results of each case to a csv file

    The following is an example script that adds cases with different current amplitude values and outputs the results of each case to a csv file.

  4. [S8469] Script to register the rotation angle at which torque is maximized as a response value

    I want to register the rotation angle at which the torque is maximum in the response value in the script.

  5. [S8386] Script for exporting images to the same directory as the JPROJ file

    The following is an example of a script that exports images to the same directory as the JPROJ file.

  6. [S8426] Script to create response data by determining duplicates and create response graphs

    The following is an example of a script that checks for duplicates, creates response data, and creates a response graph.

  7. [S8332] Script to add cases and specify the direction of magnetization for each

    The following is an example of a script that adds three cases and sets the direction of the reference axis for the magnetization direction for each.

How to use script file

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