openstaad

A package for openstaad API connection with python


License
Other
Install
pip install openstaad==0.0.2

Documentation

OpenStaad

Abstract

This Python package is designed to facilitate the connection between the OpenStaad API and python.

Quick Info

  • openstaad is a Python package to call easily functions from the OpenStaad API.

  • MIT-License

  • The intended audience is StaadPro users with knowledge of Python

  • Compatibitity:

    • Tested with Python 3.10.9
    • Operating System: Windows 11
  • Dependencies:

  • See implemented funcionts for a list of currently working features.

  • Please contact the developer for requests.

Installation

Basic installation by pip.

pip install openstaad

A simple example

For the next example, a valid STAAD.Pro file should be open.

from openstaad import Geometry, Root

geometry = Geometry()
root = Root()

# Function that returns a list
beam_list = geometry.GetBeamList()

# Function that retuns a string
file_name = root.GetSTAADFile()

# Function that recibe an argument
beam_number = 10 
beam_nodes = geometry.GetMemberIncidence(beam_number)


print(beam_list)
print(file_name)
print(beam_nodes)

Website

Not yet implemented

Documentation

See documentation folder

Contribution

The source code of openstaad can be found at GitHub, target your pull requests to the main branch:

https://github.com/OpenStaad/OpenStaadPython/pulls

Feedback

Questions and feedback at GitHub Discussions:

https://github.com/OpenStaad/OpenStaadPython/discussions

Questions at Stack Overflow:

Post questions at stack overflow and use the tag openstaad or openstaadpython.

Issue tracker at GitHub: https://github.com/OpenStaad/OpenStaadPython/issues

Contact

Please always post questions at the forum or stack overflow to make answers available to other users as well.

Feedback is greatly appreciated.

Konrad