Giter Club home page Giter Club logo

ak_sap's Introduction

ak_sap

Python wrapper for SAP2000. Generate/Analyze/Extract complex structural models using python.


GitHub commit activity GitHub last commit tests

Table of Contents

1. About the Project

2. Getting Started

2.1. Prerequisites

  1. Python 3.11 or above
  2. SAP2000 v24 or higher

2.2. Installation

2.2.1. Production

2.2.1.1. One line command
  1. Press Win + R to open the Run console

  2. Type "cmd" and press enter

  3. Type the following and press Enter

     curl -sSL https://links.struct.work/SAP2000 > %USERPROFILE%\Desktop\install.bat
    
  4. You should now have a install.bat file in your desktop

  5. 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
  • 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
2.2.1.3. Install from Pypi release
pip install ak_sap

Note: The Pypi version does not ship with the optional streamlit gui

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 has an optional streamlit GUI for the wrapper. Checkout GUI.md for installation and usage instructions.

3.2. Layout Documentation

To see module level usage, check out the Layout.md or Usage.ipynb

4. Roadmap

Roadmap/Checklist

  • 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

ak_sap's People

Contributors

rpakishore avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.