Hello, I am using remote scripting on Plaxis 3D (usign Spyder), and I am having an issue when trying to use the function get_equivalent (to obtain an equivalent entity on Plaxis Output). I am following the example script for the addcurvepoint command found in the Scripting Reference. Towever, the function does not seem to be included in the "plxscripting.easy" module, or at least Python can't find it. Is it possible that my "plxscripting.easy" module is outdated? Am I missing some step? Alternatively, I would appreciate an indication on how to find entities in Plaxis Output to be able to add curve points without using the get_equivalent function.
Here is the section of the code, in which I try to define existing points as "curvepoints" in a specific entity (a plate)
Thank you.
Dear Juan,
When using Spyder maybe you are missing some important files included in our Python distribution. Nowadays we offer the possibility to install the required packages in a custom Python distribution as shown in the screenshot below:
Have you tried this option?
Note that with Spyder you can also configure it to point to the Python distribution we deliver. Look for the instructions of your IDE environment, or search online, like e.g. Anaconda with Spyder: https://stackoverflow.com/questions/43592879/how-to-change-python-version-in-anaconda-spyder
And by using the Python distribution by PLAXIS you can also install any extra modules you need:How to install additional Python modules in PLAXIS - PLAXIS | SOILVISION Wiki - PLAXIS | SOILVISION - Bentley Communities
Despite that, I would say that you could define the function to have the points from Input as direct parameters, instead of using the get_equivalent, so:
select_points_for_curves(g_i.Point_1.x, g_i.Point_1.y, g_i.Point_1.z)
Then, the function can open Output and use the coordinates with the addcurvepoint command.
Note, that since I cannot see the full code, I might be missing but nevertheless, I hope that this helps.