Geotechnical projects are more complex. Models are larger, construction sequences have more stages, and parametric studies must be rerun. Manually building and post-processing models is tedious and time-consuming. Small inconsistencies can easily creep in.
With scripting, RS3 users can now:
To highlight scripting in RS3, we are launching a three-part series, with each article covering a specific real-world application: open pit mining, underground mining, and tunnelling.
The first article focuses on modelling open-pit excavations. With a single script, engineers can:
all without any manual intervention.
Models that once took hours to set up can now be built, staged, and computed in minutes. For pits with many benches and pushbacks, the time savings and drop in human error are game-changing.
To get us started, however, we will highlight a simple underground cut-and-fill mining example in this article. One of the most powerful aspects of the new RS3 scripting module is how easy it is to go from an idea in natural engineering (plain) language to a working Python script that RS3 can execute. Instead of hand‑coding every step, you can describe the workflow you want, let an AI code assistant generate the script, and then run it directly inside RS3.
In a recent underground cut‑and‑fill example, we used the Cursor AI coding assistant to do exactly this. The only “input” Cursor received was a natural‑language description of the task:
Cursor translated this description into a complete Python script using the RS3 scripting API, with the correct calls to open the model, create stages, excavate volumes, detect connectivity, and assign materials. Once the script was generated, we simply loaded it into RS3’s scripting module and ran it. RS3 then followed the instructions step by step: renaming stopes, building stages, excavating drifts and stopes, and backfilling them automatically.
To see this in action, you can watch a short screen‑capture video that shows RS3 reading the Python file and executing the full excavation and backfill sequence.
With this release, you drive every step of the modelling workflow from a script:
While this article focused on how scripting can automate underground excavation and backfill workflows from natural-language instructions, the next parts of the series will explore how far this flexibility can extend across mining and tunnelling applications.
The next article will demonstrate how RS3 scripting can connect mine planning workflows directly to geomechanical simulation. In many underground mining operations, extraction and backfill schedules are managed in spreadsheets maintained by planning teams. With scripting, those schedules can become direct inputs to the numerical model.
Using a CSV file containing:
RS3 will automatically generate staged excavation and backfill sequences directly from the planning data. When schedules change, engineers will be able to rerun the script and regenerate updated models within minutes rather than manually rebuilding staging sequences.
The article will also demonstrate how this workflow can reduce setup effort while improving consistency between mine planning and numerical analysis.
The third article will focus on extending RS3 post-processing workflows through scripting-driven design tools.
Using a tunnelling model, scripts will extract liner forces and feed them into a custom interactive interface for support assessment. Engineers will be able to:
Rather than relying only on standard result plots, this workflow will demonstrate how RS3 scripting can support project-specific design dashboards tailored to engineering decision-making.
This release marks the beginning of a more flexible and programmable future for RS3. Scripting opens the door to advanced workflows including parametric studies, probabilistic analysis, design optimization, and AI-assisted modelling automation.
The scripting API will continue to expand, with additional capabilities and real-world workflow examples to be shared in future releases.
Reach out to the RS3 team to learn how scripting can accelerate your next project and follow the upcoming articles in this series to see RS3 scripting applied across real engineering workflows.
Building on the success of our first 3D RS3 Masterclass, we’re excited to bring you the next segmen...
Back analysis is where geotechnical models stop being purely predictive and start being confronted...
After the introduction to Python scripting in part I, this second session will demonstrate more adv...
Significant ground movements due to deep surface excavations can seriously impact neighbouring infr...
Following the resounding success of our inaugural event in Almaty in 2024, Rocscience is delighted...
Tunnelling is a specialized civil engineering discipline for designing and constructing underground...
Civil and mining engineers have always relied on innovative geotechnical solutions for their comple...
Join a focused group of 15 practitioners to discuss optimal 3D geometry preparation and how you can...
Looking for more information? Fill in the form and we will contact Rocscience Inc. for you.