Hi,
We have moved our Plaxis installation to a server, accessible by a virtual machine. The remote scripting server of the Plaxis calculation is still reachable from the local laptop.
However, an installation of Plaxis on the local computer is still required to be able to create that connection (sys.path.append( ) to correct folder of installed Plaxis python distribution). It seems that only the module plxscripting is missing in pypi, but maybe I am missing more.
Is it possible to install the required package(s) in the virtual environment of a python project to create the connection to the Plaxis API, instead of requiring a local installation of Plaxis? Maybe from a private repository?
Kind regards,
Christian Rasch
Hello Christian,
I understand your request. Note you do not mention at all which PLAXIS version you are using and which product, but I will assume PLAXIS 2D 2023.1, which is our latest.
Typically PLAXIS is installed on the PC and then you can use the provided option to install the necessary modules to the custom Python distribution (How to install additional Python modules in PLAXIS: Using a custom Python distribution). This is because some modules are implemented by PLAXIS and are not yet in pip or any other package manager.
Since you don't have PLAXIS installed you need the following modules and versions:
Note that these are all present in the default installation of the PLAXIS Python distribution, which is at:C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages
I hope that this helps.
Answer Verified By: Christian Rasch
Hello Stefanos,
Thank you for your answer. With installation of these modules within the venv the connection works! I have added the modules plxscripting and encryption to the project folder, as these are not available in a repository. This results in a working connection with the calculation (2D, version 22) on the server.