semvec/pypi-packages huggingface dataset:
swinter 0.1.0
Solidworks API for Python
License: MIT license
Requires Python: >=3.5
Keywords: swinter

.. image:: images/logo-swinter-aug20.PNG
    :width: 250px
    :align: center
    :alt: SW Interface Logo

============
SW Interface
============


.. image:: https://img.shields.io/pypi/v/swinter.svg
        :target: https://pypi.python.org/pypi/swinter

.. image:: https://img.shields.io/travis/Glutenberg/swinter.svg
        :target: https://travis-ci.com/Glutenberg/swinter

.. image:: https://readthedocs.org/projects/swinter/badge/?version=latest
        :target: https://swinter.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status

SW Interface is a Solidworks API Package for Python. In it's present state it
consist of a crude collection of wrapper functions which execute the Solidworks
API's VBA functions through COM object manipulation using the Pywin32 Package.

* Free software: MIT license
* Documentation: https://swinter.readthedocs.io.


Installs
--------
 .. code-block:: bash

    pip install swinter


Features
--------
- Basic Functions (Open, Close, Save, Start)
- View Function (Zoom to Fit, View Front, etc)
- Functions to manipulate custom properties and metadata

..  code-block:: python

    import swinter

    sw = swinter.Solidworks()

    FILE = r'/Desktop/Gear.SLDPRT'

    sw.start()  # Starts a solidworks instance
    sw.connect()  # Establishes a connection between Python and Solidworks

    sw.open(FILE)  # Open Document
    sw.set_custominfo(sw.swCustomInfoText, "MATERIAL",
                        "STEEL")  # Write Custom Property
    sw.save(rebuild=True)  # Rebuild and Save Document
    sw.close_all()  # Close all open documents


Contribute
----------
A "Contribution Guidelines" document is currently in the works.

In the meantime if you would like to contribute please refer to the following
blogpost:

http://joshuaredstone.blogspot.com/2015/02/solidworks-macros-via-python.html

Credits
-------

This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


=======
History
=======

0.1.0 (2020-08-09)
------------------
First release on PyPI.