Table of Contents
- 1. About the Project
- 2. Getting Started
- 3. Usage
- 4. Roadmap
- 5. License
- 6. Contact
- 7. Acknowledgements
1. About the Project
Python wrapper for SAP2000 application
1.1. Features
- Modal Analysis
- Can run modal analysis to capture the required modal participation, per CSA
- Response Spectrum
- Can setup, solve and run response spectrum analysis on SAP
- Template Setup
- Can quickly and consistently deploy Template SAP settings to any open SAP model.
2. Getting Started
2.1. Prerequisites
Requires Python 3.10+
2.2. Dependencies
Create the virutual environment and install dependencies
python -m venv .venv
.venv\Scripts\activate.bat
pip install flit
2.3. Installation
Install sap2000 and dependencies with flit
flit install
3. Usage
Ensure the SAP file you would like to manipulate is already open.
A script to run analysis and save the model to a new location.
import sap2000
sap = sap2000.attach()
sap.analyze(all_cases=True)
sap.save_model(savepath=r"\path\to\save\file.sdb")
3.1. Interact with database tables
List available tables
sap.Table.available
Get Table values
sap.Table.get("Project Information")
Show table information and column descriptions
sap.Table.col_description('Area Loads - Uniform')
3.2. Units
You can use this module to get the current active units in the model or set a specific unit system.
Get Units
Returns a tuple of forallpeople instance for the force and distance, and a string for the temperature (C/F). The force and distance can be directly multiplied with the numerical values to get consistent units and ease of calculation or presentation.
$ sap.Units.get()
(1.000 kN, 1.000 m, 'C')
Set Units
| Number | Force | Distance | Temperature |
|---|---|---|---|
| 1 | lbf | in | F |
| 2 | lbf | ft | F |
| 3 | kip | in | F |
| 4 | kip | ft | F |
| 5 | kN | mm | C |
| 6 | kN | m | C |
| 7 | kgf | mm | C |
| 8 | kgf | m | C |
| 9 | N | mm | C |
| 10 | N | m | C |
| 11 | Ton | mm | C |
| 12 | Ton | m | C |
| 13 | kN | cm | C |
| 14 | kgf | cm | C |
| 15 | N | cm | C |
| 16 | Ton | cm | C |
sap.Units.set(5)
4. Roadmap
- Beam Design
- Generate S-Concrete files with correct loadcases for any/all beams in project.
- Get beam/column design summary.
5. License
Distributed under the no License. See LICENSE.txt for more information.
6. Contact
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/sap-analysis
7. Acknowledgements
Use this section to mention useful resources and libraries that you have used in your projects.
Metadata
Release files for sap2000 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sap2000-0.0.1.tar.gz | 3.0 MB | Without provenance | Details for sap2000-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sap2000-0.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for sap2000-0.0.1-py2.py3-none-any.whl |
Total release size: 3.0 MB
Release files / sap2000-0.0.1.tar.gz
| Download URL | sap2000-0.0.1.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
437075c7deadd8a2d7fb22228bc8bb64d8de56892ee11b3e4ffff9ea8000167a
|
|
BLAKE2b-256 checksum How to use checksums |
a3be764e618d2d3355094a0dab4686c22c0c3dcf686676132a12d7481d3346e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Release files / sap2000-0.0.1-py2.py3-none-any.whl
| Download URL | sap2000-0.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 30.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
4a61b9950d0ee230c7dd51bb2f6b0e9f88bf8de9a705363a6a16b167f7a710f3
|
|
BLAKE2b-256 checksum How to use checksums |
a15300c9e07df184d048ac1c3a2c92b9dbae0f3d97c60640cd0f9839e81c51e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.28.1
|
Security for sap2000 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.