SWPyMacros
SWPyMacros copied to clipboard
Solidworks Python Macro List
SW Python Macros
🚧 This code shows how to call and run solidworks-api through python and use python power to make it nicer 🚧
Table of Contents
- Installation
- Usage
- "Macro-List"
- Contributing
- Contributors
- License
Installation 📐
- Requirements : Solidworks API, Python 3.7 (Tested on 3.7.3). Only works on Windows
- Method
# Pip Way
pip install -r requirements.txt
- Method
# Pipenv Way
pip install pipenv
pipenv install
# Start env
pipenv shell
Usage ⚙️
# Make sure you're in virtualenv !
python hello_python_world.py
Macro List 🔥
- hello_python_world.py (Hello Python World" text and "rotating)
- gui/sw_gui_basic_slider_control.py (Basic python tkinter gui with creating cube and control D1 dimension via "slider")
Contributing ✔️
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
Contributors ✨
License
MIT