You can check out the following MathWorks documentation on how to export a SolidWorks model into Simscape Multibody:
You can also refer the following MATLAB answer if you face any blocker with Simscape Multibody linking:
Hope this helps!
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!