projectchrono / chrono-solidworks

Plugin for exporting SolidWorks systems to Chrono::Engine
BSD 3-Clause "New" or "Revised" License
25 stars 10 forks source link

CHRONO::SOLIDWORKS

chrono_solidworks_github_1 chrono_solidworks_github_2 chrono_solidworks_github_3

Chrono::SolidWorks is an add-in for SolidWorks that allows to simulate the CAD models by leveraging the capabilities of the Chrono multibody library.
The models created can be also exported for further processing directly in Chrono, either in C++, Python, C# or through JSON files.

Chrono::SolidWorks is part of Project Chrono.

Main features

For more informations: Chrono::Solidworks User Manual

How to install the add-in

Visit the ProjectChrono website for the pre-compiled binary webpage and look for the Chrono::Solidworks section. The installer will prompt the user to locate the Solidworks directory. Dependencies will be installed together with the add-in.

How to build the add-in from source (advanced users)

There is no need to build the add-in from source unless you are interested in expanding/fixing the add-in.

If you find problems to build the add-in, look at this tutorial for instructions about how to build add-ins for SolidWorks.

How to use the Chrono::SolidWorks add-in

In the ChronoSolidworksImportTemplate a CMake solution offers a set of projects to test all the export options: CPP, JSON, Python parsing and PyChrono. CMake will setup a solution according to your IDE including to test the first three types of export, plus it will create a dedicate PyChrono source file that can be run indipendently (it will be created in the _${PROJECT_BINARYDIR}/pychrono).
The ChronoSolidworksImportTemplate is available in the install folder or inside the to_put_in_app_ir folder in the sources.

See the tutorials for examples of C++ code and Python code that load systems exported with this add-in.

A place for discussions can be the projectchrono group.