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.

Batch download of S**.py

  1. [S0058] Create an ellipse shape in the Geometry Editor

    Create an elliptical region with its center position, major radius, minor radius and major angle relative to the X-axis defined by equation variables.

  2. [S0057] Define a user component and create the result item using it

    Create an expression of a user component and then create a result item that uses the user component.

  3. [S0056] Create a vector expression

    Create a vector expression data from the table results and define a vector expression using that variable.

  4. [S0055] Create a beam in the Geometry Editor

    Create a beam part with its start position and length defined by equation variables.

  5. [S0054] Create a shell in the Geometry Editor

    Create a shell solid part with its start position, width and height defined by equation variables.

  6. [S0053] Create a helix solid in the Geometry Editor

    Create a helix solid part with its start position, pitch, number of turns, helix radius and tube radius defined by equation variables.

  7. [S0052] Create a torus solid in the Geometry Editor

    Create a torus solid part with its center position, torus radius and tube radius defined by equation variables.

  8. [S0051] Export project files with selecting studies

    Select studies from the active project and export the project file.

  9. [S0050] Create an arc section graph and obtain the result

    Create a section graph retrieving the result values along an arc and display the result data table.

  10. [S0049] Configure the response table creation for an efficiency map analysis study using a reduced order model method

    Configure the settings of the response table creation for efficiency map analysis using a reduced order model method.

  11. [S0048] Set the parametric variable ranges for optimization

    In the optimization settings, configure the parametric variable ranges and select CAD parameters to modify the range using the range finder.

  12. [S0047] Select faces oriented in the specified normal direction located within the cylindrical range

    Specify a cylindrical region in the model coordinate space, then select faces within that region and match to the specified normal direction.

  13. [S0046] Group the selected parts by specifying a box area

    Select parts by specifying a box range in the model coordinate space and create a part group from the selected parts.

  14. [S0045] Get the number of mesh elements and nodes

    Get the number of elements and nodes of the mesh created in a study.

  15. [S0044] Create a sphere solid in the Geometry Editor

    Create a spherical solid part with its center position and radius defined by equation variables.

  16. [S0043] Set parameter using a function to a condition of transient response analysis

    Set parameters such as current and electric potential, which change depending on time, angle, etc., using functions.

  17. [S0042] Create an efficiency map that has the drive cycle

    Create an efficiency map with a drive cycle for the result evaluation of the efficiency map study.

  18. [S0041] Create composite result display definition to display multiple distribution plots on a single screen

    Create a composite result definition to plot different result types or different components for each part and display on a single screen.

  19. [S0040] Create an equation in the case control

    Create an equation of an expression type with specifying the display order on equation list.

  20. [S0039] Create a full model from a partial model using the assembly pattern feature

    Load a CAD file prepared as a partial model and create a full model using assembly pattern features.

How to use script file

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

Search Filter
  • All Categories

An engineer's diary
JMAG-Express Online