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,
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.
Thanks Mate.It is very helpful.