When using the PLAXIS scripting environment, it is possible to open and close any PLAXIS project using Python.
The following information can be used in both PLAXIS Input and Output applications.
To open a project in PLAXIS Input program, you can use the Python function:
s_i.open('full path to PLAXIS project')
in which the <full path> is provided as a string including the PLAXIS file extension (.p2dx or .p3d).
Note: above the r means the string will be treated as a raw string and the backslashes used in the project path will not cause any conflicts in the Python language.
To close the current project in the session, you can use the command:
Note that there are no extra parameters to be defined in this case. Remember to always save your progress before closing the project with the command:
The article Using PLAXIS Remote scripting with the Python wrapper contains detailed information about the variables used in the boilerplate.
Using PLAXIS Remote scripting with the Python wrapper [API / Python scripting]
Run multiple calculations easily [Tips and Tricks]
Reference manual - Appendix Python HTTP REST API wrapper [Manuals]