I am struggling to connect GH to Plaxis software in order to get a complete workflow for TBM tunnels. Does anyone know if it is possible to do it (Same as can be doine with the revit plugin, sofistik plugin etc?
Was a bit difficult but now with Rhino 8 and Cpython in GH, you can use plaxis’ API to automate.
Configure a remote scripting server in plaxis, and connect it from GH Cpython. Maybe two packages need to be installed in GH python environment which you can try set the python interpreter to your GH Cpython location, then the hint will appear. And you actually not really need to change the interpreter as you gonna use the remote server
Is it possible to use Rhino 7. When I try the boilerplate code for Plaxis I get unknown encoding errors. This is what I tried:
import sys import os
# Ensure the PLAXIS Python module is accessible plaxis_path = r’C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages’ # Update this path as necessary sys.path.append(plaxis_path)
*from plxscripting.easy import ** s_i, g_i = new_server(‘localhost’, 10000, password=‘F2QS47UV=SF9yz>’)
Error Code:
Runtime error (SyntaxErrorException): unknown encoding type
Traceback:
line 14, in , “C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages\requests\compat.py”
line 11, in , “C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages\requests\exceptions.py”
line 45, in , “C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages\requests_init_.py”
line 22, in , “C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages\plxscripting\connection.py”
line 35, in , “C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages\plxscripting\server.py”
line 22, in , “C:\ProgramData\Seequent\PLAXIS Python Distribution V2\python\Lib\site-packages\plxscripting\easy.py”
line 7, in script