GeoStudio API (Python)

LucasSouza
LucasSouza Posts: 1
edited August 27 in GeoStudio

Hi everyone,

I’m automating SLOPE/W runs via the GeoStudio Python API and I need to access the reinforcements so I can read and modify, line-by-line, the Tensile Capacity and Pullout Resistance.I’m struggling to find the correct object tree/collection for reinforcements in the API.

What I want to do

  • Iterate over the reinforcements defined in the model (either Line or Face mode),
  • Read/modify TensileCapacity and PulloutResistance for each element,
  • Solve the analysis and store the critical FoS, looping for combinations (sensitivity/reliability workflows).

Environment

  • GeoStudio: 2025.1 (SLOPE/W)
  • Python API: gsi-2025.1.0 (official wheel)
  • OS: Windows 11 • Python 3.12 • grpcio up to date
  • Project: .gsz file with reinforcements already defined in the GUI

What I’ve tried / what I can see

  • I can open the project, select the analysis, and list CurrentAnalysis.GeometryItems (e.g., Regions, Boundaries, etc.).
  • But I cannot find where the reinforcements live.
  • === Scanning likely collections ===CurrentAnalysis.GeometryItems.Regions: 9 items=== Trying direct collections ===(no obvious 'Reinforcement', 'Nail', or 'Tieback' collection shows up)
  • I also looked under Project.Library (materials/structures) but didn’t locate reinforcements there either.

Concrete questions

  1. What is the correct path/collection in the API to access SLOPE/W reinforcements? (Something like analysis.Reinforcements, analysis.StructuralElements, Project.Library.ReinforcementTypes, …?)
  2. How can I iterate by “line” (Line mode) or by face (Face mode) and, for each item, read/write TensileCapacity and PulloutResistance?
  3. Are there API differences between Face-defined vs Line-defined reinforcement that I should handle (e.g., property inheritance by material/layer)?
  4. Is there any official example (or code excerpt) that demonstrates reading/writing these two parameters specifically?
  5. If reinforcements aren’t under GeometryItems, do they live under a Structural/Support elements node or in Libraries/Templates referenced by the analysis?

I can attach a minimal .gsz with 2–3 reinforcements if that helps.

Thanks!

Tagged:

Comments

  • PrachiChitkara
    PrachiChitkara Posts: 378 admin

    Such a great question, Lucas! 🙌

    I’m tagging @IngridAraujo @JayfanChou @ShishirKumarSikderAm @DivyanshRaunak since you might have run into this before. Would love to hear if you’ve figured out where reinforcements “live” in the API and how you go about editing them.

    Feels like a lot of us could benefit from knowing how line vs face mode works.. so thanks for bringing it up! 👏

  • CurtisKelln
    CurtisKelln Posts: 1
    edited September 17

    Hi Lucas,

    We are in the process of creating better documentation, more YouTube videos, and example scripts. Some example scripts have been added to the Seequent Learning Management System (Resources). In our next video, we hope to highlight how dynamic sketch text (Sketch - Text - Insert) can be used to find the object of interest. Here is an example of some code that will hopefully help you resolve the problem:

    image.png

    Note: 'object' is unused but was retrieved so that I could see the data structure representing the Pullout Resistance and therefore discern to update 'Value'.