You can run a Python script directly from the 3DEXPERIENCE interface to create or edit a series of objects automatically without performing a set of repetitive interactions in the user interface. When you run a script, 3DEXPERIENCE platform creates and inserts its objects in your current simulation, and they are visible as soon as Python completes the appropriate lines of the script. The scripts you select must be available on a local directory or an accessible shared directory. You cannot store Python scripts in the 3DEXPERIENCE database. Note:
Abaqus and the 3DEXPERIENCE platform have different data model and APIs, so you cannot reuse existing Abaqus
Python scripts in 3DEXPERIENCE Physics Apps. If there are some general purpose routines built into the scripts to do
some specific operations like data manipulation, some of those routines could possibly
be used in a limited manner.
After you specify the script you want to run, you can either run the script immediately, or you can open the script in an interactive editor. Opening the script first enables you to examine its contents and edit or debug portions of the script before you execute it. Python scripts open in IDLE, which is the Integrated Development Environment within Python. For more information about debugging and running scripts from the IDLE interface, refer to The Python Standard Library documentation for Python 3.10.n, which is available from http://docs.python.org. If you want to configure the 3DEXPERIENCE platform to open a different version of Python, you can specify the Python executable and libraries for the alternative version from the Preferences dialog box. For more information, see Python. | |||||||||||