Documentation

What is OpenStaad Python?

⚠️ Important Note: OpenStaad Python requires an active and valid Staad.PRO file to function properly.

OpenStaad Python (OPS) is a library designed to simplify interaction with the OpenStaad API. It provides an intuitive and user-friendly interface that allows structural engineers and developers to automate common tasks in Staad.PRO efficiently.


Why Use OpenStaad Python?

  • Easy to Use: Provides a simplified API that reduces the complexity of working directly with OpenStaad.
  • Automation: Enables automation of repetitive tasks such as model creation, analysis, and result extraction.
  • Integration: Compatible with Python, making it easy to integrate with other libraries and tools.
  • Clear Documentation: Designed to be easy to learn and use, with practical examples.

Installation

You can easily install OpenStaad Python using pip:

pip install openstaad

Getting Started

Make sure you have Staad.PRO installed and a valid file open before using OpenStaad Python.

Basic Example

from openstaad import Geometry

geometry = Geometry()

beam_list = geometry.GetBeamList()
beam_nodes = geometry.GetMemberIncidence(10)

print("Beam list:", beam_list)
print("Beam nodes:", beam_nodes)

Key Features

  • Access Geometry: Get detailed information about structural elements such as beams, nodes, and plates.
  • Model Control: Create, save, and analyze models directly from Python.
  • Customizable Units: Work with different unit systems as per your needs.
  • Analysis Results: Extract results like displacements, forces, and moments programmatically.

Additional Resources


Start exploring the possibilities with OpenStaad Python and take your structural projects to the next level!