About the 3DX Script Adapter

The 3DX Script adapter allows you to pass in arguments and run a 3DX script, such as a VBScript or a Python script, that operates on, or creates, a 3DSpace object, such as a part or a simulation.

This page discusses:

See Also
Configuring the 3DX Script Adapter
In Other Guides
Automating Tasks Using Macros

You can insert a 3DX Script adapter into your simulation process and use the adapter to run a 3DX Script that operates on, or creates, a 3DSpace object with a selected app.

If your script creates a new object or modifies an existing object, your changes are not automatically saved and, by default, are lost when the script completes. In addition, you cannot perform a manual save while the script is running. However, you can do either of the following to save an object that was modified or created by your script:

  • Include save commands in your script.
  • Use the Capture object in option to capture the last object opened by the script in an object parameter. The last object opened by the script is saved in the object parameter, regardless of whether it was created or modified. The object parameter is saved when the script completes.

When Optimization Process Composer runs the 3DX Script adapter, it launches a 3DEXPERIENCE client in the background. Therefore, the 3DOrchestrate Station that runs the 3DX Script must be installed on a system that has the same prerequisites as the 3DEXPERIENCE client.

If you are running your process on a remote station, then you must run it from a browser using Process Composer (Web) or Performance Study, and close the 3DEXPERIENCE on your computer.