Python wrapper for SAP2000 API
Project description
ak_sap
Python wrapper for SAP2000. Generate/Analyze/Extract complex structural models using python.
GUI · Getting Started · Layout Documentation · Report Bug/Request Feature
Table of Contents
- 1. About the Project
- 2. Getting Started
- 3. Usage
- 4. Roadmap
- 5. License
- 6. Contact
- 7. Acknowledgements
1. About the Project
2. Getting Started
2.1. Prerequisites
- Python 3.11 or above
- SAP2000 v24 or higher
2.2. Installation
2.2.1. Production
2.2.1.1. One line command
-
Press
Win
+R
to open the Run console -
Type "cmd" and press enter
-
Type the following and press
Enter
curl -sSL https://links.struct.work/SAP2000 > %USERPROFILE%\Desktop\install.bat
-
You should now have a
install.bat
file in your desktop -
Move this file to your desired installtion directory and run to install the
AK_SAP
module
2.2.1.2. Install directly from repo
Clone repo and Install with flit
git clone https://github.com/rpakishore/ak_sap.git
cd ak_sap
pip install flit
flit install --deps production
2.2.1.3. Install from Pypi release
pip install ak_sap
2.2.2. Development
Download the git and install via flit
git clone https://github.com/rpakishore/ak_sap.git
cd ak_sap
pip install flit
flit install --pth-file
3. Usage
Initialize the module as below
from ak_sap import debug, Sap2000Wrapper
debug(status=False)
#Initialize
sap = Sap2000Wrapper(attach_to_exist=True) #Attach to existing opened model
sap = Sap2000Wrapper(attach_to_exist=False) #Create new blank model from latest SAP2000
## Create blank model from a custom version of SAP2000
sap = Sap2000Wrapper(attach_to_exist=False, program_path=r'Path\to\SAP2000.exe')
Parent level methods and attributes
sap.hide() #Hide the SAP2000 window
sap.unhide() #Unhides SAP2000 window
sap.version #Returns SAP2000 version number
sap.api_version #Returns Sap0API version number
sap.save(r'\Path\to\save\file.sdb')
3.1. GUI
The repo now supports a streamlit GUI for the wrapper. Checkout GUI.md
for instructions.
3.2. Layout Documentation
To see module level usage, check out the Layout.md
or Usage.ipynb
4. Roadmap
- Generate Load Patterns
- Generate Load Cases
- Apply Loads
- Points
- Area
- Line
- Export joint reactions to Hilti-Profis file
- Export Frame/Wall sections to S-Concrete
5. License
See LICENSE for more information.
6. Contact
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/ak_sap
7. Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ak_sap-0.0.1.tar.gz
.
File metadata
- Download URL: ak_sap-0.0.1.tar.gz
- Upload date:
- Size: 180.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a5ca3b54369815dd9ec08698ec073e2f262d975c4407be714df45a1da8c08e |
|
MD5 | a7478405d1571b984e8dc6c7ac6cf440 |
|
BLAKE2b-256 | 51f0071319d48cd1f278fdf97b6a80c649f18d8354df2c2d65d5669b6b20509a |
File details
Details for the file ak_sap-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ak_sap-0.0.1-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 219071424edcbabc7743949d469b9d7eab0a1a000a83c8c33cbf8824595ec33a |
|
MD5 | 37024334b768a805a3114a814c67eb15 |
|
BLAKE2b-256 | 7c7f487f835868a6a9f0806f4edf5a683c114c867e10cbb6c084fc772cd8912c |