Skip to main content

What You Can Do with Automation in Speos for NX

You can create new Speos for NX features or modify existing features, run and export simulations using scripts. This section gives you an overview of what Speos for NX Library can achieve with one example of Python script. This section contains the following topics:

How to create an NX Journal Python

  1. Create a text file in the target directory.
  2. Edit it with a text editor.
  3. Change its extension for .py.
-Or-
  1. Press Ctrl + M on your keyboard.
  2. Click Menu, Tools, Journal, Record.
  3. Type the name of the journal.
  4. Click OK.
  5. Click Menu, Tools, Journal, Stop Recording.

How to create a Speos for NX Python script

  1. Open your .py journal.
  2. Rewrite the function as below:

How to run an NX Journal

  1. In Menu, click Tools, Journal, Play…
  2. Select the journal to play from Recently Accessed Journals.
-Or-
  1. Browse for the journal to start.
  2. Click Run.
Note: You can also edit the journal from Speos for NX. You can add journal arguments.