Configuring the Python Script Adapter

You can configure the Python Script adapter by selecting the required Python API script.


Before you begin:
  • When you install the 3DEXPERIENCE Platform with the Physics Simulation app, Python 3.0 is also installed. The app uses the Python paths directly from the 3DEXPERIENCE installation directory to run the Python script. The default Python environment includes the required SimProcess API, Py4j, and request modules.
  • If you do not install the Physics Simulation app or if you require additional modules, you must install a stand-alone Python on your computer with Py4j and request modules.
    Note: You must include the stand-alone Python installation in the PATH environment variable for the station user. For more information, see Python Script.
See Also
About the Python Script Adapter
Dassault Systèmes Python API Scripts
  1. From the General Operations section of the action bar, click Python Script , and drop it on the process diagram.
  2. Double-click Python Script on the process diagram to open the Python Editor.
  3. From the Select Python script options, select one of the following to add an API script:
    OptionDescription
    Content Lets you select an API script document that is already a part of the simulation process.
    Parameter Lets you select an API script document that refers to a Python script.
  4. If you selected Content, select one of the following to specify the script document:
    OptionDescription
    Searches and selects an API script document from the list to add to the simulation process as referenced content.
    Adds a referenced API script document from your local directory.
  5. If you selected Parameter, click to search and select an API script document, which the app creates as a referenced parameter.

    3DSearch automatically filters the results to fit the type of data that you are configuring.

  6. From the list, select the appropriate Python API document.

    Tips:

    If required, click to preview the content of the script.

    You can also select additional Python files by clicking .

    Note: The Python Script Adapter does not support simulation documents.

  7. Click OK.