Python wrapper for SAP2000. Generate/Analyze/Extract complex structural models using python.
- 1. About the Project
- 2. Getting Started
- 3. Usage
- 4. Roadmap
- 5. License
- 6. Contact
- 7. Acknowledgements
- Python 3.11 or above
- SAP2000 v24 or higher
-
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
Clone repo and Install with flit
git clone https://github.com/rpakishore/ak_sap.git
cd ak_sap
pip install flit
-
If you want just the base package:
flit install --deps production
-
Alternatively, if you also want to include the optional streamlit gui:
flit install --deps production --extras gui
pip install ak_sap
Note: The Pypi version does not ship with the optional streamlit gui
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
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')
The repo has an optional streamlit GUI for the wrapper. Checkout GUI.md
for installation and usage instructions.
To see module level usage, check out the Layout.md
or Usage.ipynb
- 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
See LICENSE for more information.
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/ak_sap