Hello
Will you share the script in the webinar ? communities.bentley.com/.../coffee-corner-geotechnical-analysis---more-efficient-plaxis-usage-with-python-api---am-and-pm-sessions-available
Can we download and use it?
Thank you
Dear John,The example can be downloaded here (after logging in: https://communities.bentley.com/products/geotech-analysis/m/plaxis-soilvision-files/275734 )
Hi Micha, I tried to run this code but there was an error as in the picture below (Traceback (most recent call last):). Can you help me solve it. Thank you
Dear Nam,
It seems that the error points to the line command that we know exists in the PLAXIS Input program.
Can you see what PLAXIS Input command line reports - is there an error there, too?
Can you confirm that you are in Soil or Structures mode? That is usually where you can create a line.
I will also check the code in my case, but in the meantime, you can check the above.
Dear Nam,While loading the file, it could indeed be, as Stefanos suggested, that the file is not loaded in Structures mode. This was not enforced. To avoid this happens, the updated version now contains this check:
communities.bentley.com/.../275734
Thank you Stefanos and Micha, I reinstalled Plaixs and tried to run the updated code Micha uploaded, and the result is now a little better.
-The retaining wall and one tieback have been created but there is still the same error as shown in the picture below. The error is now about 'embeddedbeam' instead of line command as before.
-There was no error in the command line reports when I ran the code. I also attached the picture of Plaxis after running the code.
-I run python code as follows: I first open the model then turn to the Structures tab and finally load and run the code.
could you help me to solve this problem? Thank you
From SciTE I see that you are using PLAXIS 2D CONNECT Edition V21 Update 1. Is that correct?
Note that the script was tested for PLAXIS 2D CONNECT Edition V22.00 with Python 3.8.x. In our latest version, the command embeddedbeam is used from now on. For the older version, the command was called: embeddedbeamrow.
https://communities.bentley.com/products/geotech-analysis/w/plaxis-soilvision-wiki/45991/plaxis-2d-command-compatibility-notes
You can manually replace this command in your script however I cannot guarantee everything will work as this script was created to work in a newer version.
Thank you, Stefanos so much!
It works perfectly now.