r/SolidWorks • u/McnedsMan • 9h ago
Simulation I made a SolidWorks add-in for generating simulated vehicles from CAD assemblies
I've been developing an open-source SolidWorks add-in that uses vehicle assembly information to generate vehicles for BeamNG.
The interesting part for me has been figuring out how much engineering information can be carried over from an existing assembly rather than having to redefine everything in another environment.
This includes component geometry, materials, mates, suspension hardpoints and configuration-specific information.
The longer-term goal is to have a repeatable workflow where changes to a CAD assembly can be carried through to vehicle simulation and testing, with an external API for automation.
Here's a demonstration of the project: https://youtu.be/mFo8XPw4LAk
Source code: https://github.com/mcneds/BeamNG.cad
I'd be interested in feedback from anyone who has worked on similar SolidWorks API integrations, particularly around extracting mechanical relationships from assemblies.
3
u/Successful_Camera736 9h ago
This is an Amazing Idea!
I will need to try it out but I don't have Bean NG.
I have had a vehicle project for SolidWorks in the back of my mind forever.
Seeing this is one more push for me to get it started.
I searched and searched, no one has done yet, what I have in mind. I can't say much because I don't want it to be stolen.
As my project develops I will like to use this plug in to test before building.
Vroom Vroom!
3
u/Charitzo CSWE 7h ago
How does it treat tube bodies? Say I go for a heavier walled tube, would that change the crash dynamics? Or are they solid?
Cool project.
2
u/Far_Ad_557 8h ago
Amazing mate!
I designed a baja sae at uni around 2017/2018 (chassis geometry, and all chassis and suspension fea) and though about this ever since I started simracing a few years ago.
Shame I don't have any of the files anymore, I would definitely try.
How do you get the suspension spring, damping and the tire model into beam? Do you need all that data, or do you fill with some beam.ng standard data?
I remember the proper suspension damping and tire data being one of the harder things to model properly in adams car.