You are currently reviewing an older revision of this page.
The staged construction settings and values for any Intrinsic properties of all UserFeatures can be retrieved and set using these Python scripts.
When using the Calculation manager tool, it is possible to include one pre-processing and/or one post-processing Python script.
Having trouble making cross sections for PLAXIS results using the Python wrapper? Find a working solution with an example in this article!
In this example, we will show how to change a soil material colour in PLAXIS 2D and PLAXIS 3D using a working Python script example.
We defined a Python script combining forces and displacements for a single wall into one plot and table for easy extraction of combined results. The page includes a fully working Python script for PLAXIS 2D 2017 you can run directly from the program without installing or programming!
In this article, it is explained how to use the Remote scripting feature (Python commands) to create a tunnel using the PLAXIS tunnel designer.
The article explains the available options on how to install and use any Python modules with the PLAXIS scripting environment.
Since PLAXIS CONNECT Edition V20, extensive documentation is available regarding the Remote Scripting functionality. This can be found under Help > Scripting reference menu. The first step to identify the command syntax when using the Python scripting functionality is to understand the Plaxis native command.
To get a list of just soil or plate material using Python, we can use a simple line to retrieve these. Here we show you how to easily do this.
Sometimes you import a geometry into PLAXIS 2D via e.g. a DXF file, but the import does not generate soil polygons, but polycurves (just the outlines). This Python script fixes it.
With the PLAXIS Remote scripting API, it is possible to automate the process of handling any invalid custom connections present in a project.
In PLAXIS 2D, you may want to know all the coordinates of a polygon in order to use it in your Python/scripting environment. This page shows a Python snippet to quickly retrieve this info.
In each borehole, soil layer information is stored: top, bottom and thickness. The attached Python script reads this data and returns it to be used in your script!
Since PLAXIS CONNECT Edition V20, extensive documentation is available regarding the Remote Scripting functionality. This can be found under Help > Scripting reference menu. The documentation is based on Jupyter notebooks and requires the activation of the Remote scripting server.
With Python scripting, it is now possible to take advantage of the interactive selection of objects and pass them to the scripting layer for further usage. This can be achieved using the selection API.
This Python scripting example will teach you how to automatically assign soil materials to the borehole soil layers in your PLAXIS model.
Advancing tunnels in PLAXIS 3D may need many calculation phases to model the full sequence and can be tedious to do. Using automation (and Python) this can all be done with a single action.