I am using Python Scripting with Plaxis 2D.
I have exported a plot of the Phase deviatoric strain Pys.
However i cant work out how to hide the Nodes and StressPoints on the plot.
In the GUI it is very simple using the tree, but it does not fill in anything in the command line.
Thanks in Advance
Dear Natalie,
You are right, this is missing in the Python scripting layer and I have asked our developers to include it.
Usually, the nodes and stress points do not appear by default. However, it can be that Output remembers the last time you opened it as you had the nodes and/or stress points visible.
So, the main question is, when you manually click to view the results from Input, does Output show the nodes? If yes, try to hide them from the menu, select to Close Output and try clicking to view the results again from Input. I expect that the nodes would not be shown by default.
Use s_o.call_and_handle_commands.
Here is what i use for zooming, which is not supported by API.
zoom_text = "zoom Plots[-1] " + "(" + str(x_min - plus) + " " + str(y_min - plus) + " " + \ str(z_min) + ") (" + str(x_max + plus) + " " + str(y_max + plus) + " " + str(z_max + plus) + ")"
s_o.call_and_handle_commands(zoom_text)You can try something like this:
s_o.call_and_handle_commands("hide Plots[-1] Nodes")
Have fun!
For your information, the zoom command can be used with Python scripting.
Check the following article and the chapter: Other visualisation commands: https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/55949/export-and-format-plots-from-plaxis-output-using-python
In 2D? Sure. But my problem was with 3D.
For both PLAXIS 2D and 3D.
You can check our Scripting reference, too, as well as running the command:commands Plots[-1]