Python wrapper for SAFE. 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
- CSI SAFE v21 or higher
pip install ak_safe
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_safe.git
cd ak_sap
pip install flit
flit install --pth-file
Initialize the module as below
from ak_safe import debug, SAFEWrapper
debug(status=False)
#Initialize
safe = SAFEWrapper(attach_to_exist=True) #Attach to existing opened model
safe = SAFEWrapper(attach_to_exist=False) #Create new blank model from latest SAP2000
## Create blank model from a custom version of SAP2000
safe = SAFEWrapper(attach_to_exist=False, program_path=r'Path\to\SAP2000.exe')
Parent level methods and attributes
safe.hide(status=True) #Hide the SAFE window
safe.unhide(status=False) #Unhides SAFE window
safe.version #Returns SAFE version number
safe.api_version #Returns SAFE version number
safe.save(r'\Path\to\save\file.FDB')
- Generate Load Patterns
- Generate Load Cases
- Apply Loads
- Points
- Area
- Line
- Export joint reactions to Hilti-Profis file
See LICENSE for more information.
Arun Kishore - @rpakishore
Project Link: https://github.com/rpakishore/ak_safe