I am using the discussion here for reference: https://communities.bentley.com/products/geotech-analysis/w/wiki/55949/export-and-format-plots-from-plaxis-output-using-pythonI am trying to generate Top view of forces and displacement of plate among various phases from PLAXIS 3D Output.
Using only one parameters, i.e., M11 works fine, (See code below)
but when I try to iterate the parameter to plot (See code below), Plaxis throws error (See error screenshot below)
error - I am sure, I am missing some basic syntax. Please help me, or guide me in the right direction.
Hello Ashish,
The approach you have in the second screenshot will not work as PLAXIS expects a property (M11) of an object (ResultTypes) and finds a string value ("M11").
I can only think of a way in which the paramters_to_plot list to contain the actual properties instead of strings:
paramters_to_plot = [ResultTypes.Plate.M11, ResultTypes.Plate.M22, ResultTypes.Plate.Uz, (...)]
Hello Stefanos, Thank you for the response. I appreciate your help. The method you suggest might work, I haven't tried it though. I found a better way i.e. using the following
getattr(g_o.ResultTypes.Plate,para)