This Python package is designed to facilitate the connection between the OpenStaad API and python.
-
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.
Basic installation by pip.
pip install openstaad
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)
Not yet implemented
See documentation folder
The source code of openstaad can be found at GitHub, target your pull requests to the main
branch:
https://github.com/OpenStaad/OpenStaadPython/pulls
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
Please always post questions at the forum or stack overflow to make answers available to other users as well.
Feedback is greatly appreciated.
Konrad