A Python wrapper around Solidworks built-in VBA API for modifying Solidworks assemblies and parts.
Project description
pySW
A Wrapper Around Solidworks VBA API
pySW is simply a Python wrapper around Solidworks built-in VBA API for automated modifications to Solidworks assemblies and parts.
Primary purpose of pySW is optimization studies, Design Space Exploration studies etc. There are many good libraries which offer framework for single and multi-ojective optimization, like pymoo, openMDAO and pyOpt written in Python itself. Design space can be explored using libraries like pyDOE. Apart from these, the famous Scipy library provides functions for minimizing (or maximizing) objective functions, possibly subject to constraints.
In many cases the optimization or the space exploration problem is not straight-forward that it can be expressed as equations. Some problems require some communication link between various software. For example, consider an optimization of a winglet of a commercial aircraft. This problem requires modifying and saving geometry using a CAD program, using a CAE program for analysing and saving results of the analysis and a third program/code to act as a link between CAD and CAE code as well as perform the tasks of optimization or space exploration. The first task can be prformed using pySW and the third task using the libraries mentioned above.
Note: Solidworks is a proprietary software of 3DS Systems. If you hav access to Solidworks, pySW will make your life much easier if you want to optimize using Solidworks. As an option, FreeCAD is an open-source primarily CAD program written completely in Python. It also as modules for CFD using OpenFOAM and FEM analysis.
It currently does not have the capability to modify or create sketches.
Installation
You can install pySW from pip from the command prompt by running:
pip install pySW
Dependencies:
You can install the dependencies by running the following commands in the command prompt. If you have installed the open-source Anaconda distribution for Python, please check if the libaries are already installed.
pip install pywin32
pip install numpy
pip install pandas
License
GNU Lesser General Public License v2
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
File details
Details for the file pySW-1.1.tar.gz
.
File metadata
- Download URL: pySW-1.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b6e3a1ad6e9f9fafc1d00b7f8536fc65724ed30413fc939a87702417027c56 |
|
MD5 | 0c97816256fa838182186f6278075322 |
|
BLAKE2b-256 | 95f5914cb4da57bd5c40b540d8b7788d1bad220d80a1effd8236bee58990ad77 |