Hi, I am trying to generate the outputs by python.However, the max and min value of the colour legend is always locked.How can I unlock it?Thanks,
Hello Douglas,
I guess you have found the following article:https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/55949/export-and-format-plots-from-plaxis-output-using-python
The moment you edit the MinValue or MaxValue the field becomes editable. For instance, try running the following:
g_o.Plots[-1].LegendSettings.MinValue = 5
Thanks Stefanos,I don't know the max and min value of each stages.They are significantly changing.Thanks,
Hello again,
I am not sure that I understand what you want to do.
Are you referring to the little lock icon next to the coloured legend? That can only be locked manually but if you unlock it, it stays unlocked (default option).
By the way, the min and max values per phase can be extracted using the getresults command, which returns a list and from the list, you can always find a min and max value.
Thanks Mate,Also, for min and max deformation or displacement, do I have to use the loop command?Or can I directly use getresults special command to pick the maximum value?Do you have the code for that?Thanks
If you intend to get the values per phase, you will need a loop over all (or some of the) phases. For example:
for phase in g_o.Phases: results = g_o.getresults(phase, g_o.ResultTypes.Soil.Utot, "node") max_result = max(results) min_result = min(results) print(phase.Name) print(max_result, min_result)
Of course, the above code is only printing it and not storing it in a list as this will update the min and max per case.