Skip to main content

A Wrapper around Solidworks VBA API for Automating Geometry Modifications for Python based Optimization and Design Space Exploration.

Project description

pySW

A Wrapper around Solidworks VBA API for Automating Geometry Modifications for Python based Optimization and Design Space Exploration

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:

  1. pywin32
  2. Numpy
  3. pandas

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pySW-1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

pySW-1.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pySW-1.2.tar.gz.

File metadata

  • Download URL: pySW-1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.21.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pySW-1.2.tar.gz
Algorithm Hash digest
SHA256 f0e8dda4a4988a299791024cff51e4a87d66b64700981c16abcfb6f9fabe58e9
MD5 b05e405f263fb9217bb80afa35a2736e
BLAKE2b-256 72e971459354e0525dda07532ed282d617c2f9d534d82df1fe8e2985fb68bfbb

See more details on using hashes here.

File details

Details for the file pySW-1.2-py3-none-any.whl.

File metadata

  • Download URL: pySW-1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.21.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pySW-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c21410e13f87fd8a332d4b05a63e4335fa127b0235a5067e1f37377c790069c3
MD5 f58a9856d6213001724234b9feed78e6
BLAKE2b-256 b54127b89f7b415fedd73e10464fb2ad8230fda6d2ccecf689242b1c65608927

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page