Python - ResultType and PlotType

Hi,

I am able to export the Output plot using Python code, per the guidance provided in this article.

https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45549/export-and-format-plots-from-plaxis-output

I tried out to output the plot of the Deformed mesh.

With the echo function, I obtained the following:

Plot named "Plot_1"
ResultType: |u|
PlotType: None (0)

For PlotType, I tried inputting "None (0)"/"None"/"0" into:

for phase in g_o.Phases:
g_o.Plots[-1].Phase = phase
g_o.Plots[-1].ResultType = g_o.ResultTypes.Soil.Utot
g_o.Plots[-1].PlotType = 'None'

but the following error is shown below. 

Invalid value: "None (0)". Allowed values are: nodearrows, contourlines, shadings, nodelabels or ordinal value.

Anyone knows how do I specify "None (0)" into PlotType as shown in the echo function?



Parents Reply
  • Hi Stefanos, thank you for the reply. Yes that is the workaround that I am currently doing. In the context of this workaround, it would also be very helpful to be able to execute g_o.close() with keywords to specifically close only a single model / viewport without closing the whole Output program (like Ctrl+F4 in the GUI). The only way I've found to do this now is to open a "dummy model" first, and then open and close subsequent models with g_o.open() and g_o.close(), which leaves the dummy model open on the Deformed Mesh view and ensures that the subsequent model also opens on the Deformed mesh view.. 

Children