I have a Plaxis Python workflow to export some pictures showing plastic point and stresses. However, when attempting to export relative shear stress on an interface (1 out of 6 interfaces) I'm stuck in the creation of the interface plot.
When doing this manually I double-click on the Interface I want and the change the result type to relative shear stress. How can I create an interface plot using command line or Python? (Once created I'm able to change result type and export)
Dear Håvard,
The way to create any structural plot is to run the command, e.g. for NegativeInterface_1_1:
structureplot NegativeInterface_1_1
With Python that is:
g_o.structureplot(g_o.NegativeInterface_1_1)
Regarding the way to change the plot type (and more), this is described here:https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/55949/export-and-format-plots-from-plaxis-output-using-python#plottype
Hi,
I used this g_o.structureplot and it worked well.
But when I tried to plot soil plot,
g_o.Plots[-1].ResultType = g_o.ResultTypes.Soil.dUtot
g_o.Plots[-1].DrawFrame=Falseg_o.Plots[-1].DrawLegend=False#g_o.Plots[-1].LegendSettings.MinValue= LSmin#g_o.Plots[-1].LegendSettings.MaxValue= LSmax# export plotg_o.Plots[-1].export( folder+'\\OutputPlots\\Incremental displacements.png')
I got error message PlxScriptingError: Unsuccessful command:Specified result type with 'Soil' structure, but plot requires 'Interface' instead.
How can I reset g_o.Plots[-1] back to soil plot?
Thanks!