I want to create a list of all the commands through the python API. Can i make a dump of all the commands (as shown in the Examine commands) this way?
Hello Niels,
With Python you can use the dir() function to query all the commands available in an environment.
For Input that is: dir(g_i)
The commands that can be used with PLAXIS are without underscores and in some cases are written in short names. To fully understand the commands I would use the Command reference, too (under Help menu).
Note that the ones with underscores are standard Python methods and can be ignored.
Hi Stefanos, thanks for your quick response. I was actually looking for the dump of all the commands that were used to create the model. See below:
Is this possible? Thanks in advance!
Hello again,
Via the Python API you cannot really export the commands used in the project, but you actually already have a file that contains the full command history.
For every project with PLAXIS, you have a project folder and a project file. The project file contains the full command history of the project.
For PLAXIS 2D that is the *.p2dx file and for PLAXIS 3D that is the *.p3d file.
Answer Verified By: Niels Zee
This is exactly what i needed, perfect! Thank you very much