Follow this link.
http://www.mathworks.com/help/physmod/smlink/ref/linking-and-unlinking-simmechanics-link-software-with-solidworks.html?refresh=true
Software Requirements
Registration requires that the following two products be installed on your computer:
SolidWorks
-
Download SimMechanics Link Software
You can download SimMechanics Link software directly from the MathWorks® website:
-
Select the software version to install.
Click Submit.
Save the installation files in a convenient folder.
Do not extract the zip file.
Install SimMechanics Link Software
Install SimMechanics Link software from the MATLAB command line:
Start MATLAB.
Note: You may need administrator privileges to complete the installation.
|
At the MATLAB command line enter:
path(path, '<installation_file_folder>')
replacing <installation_file_folder> with the path to the folder with the installation files.
At the MATLAB command line, enter:
install_addon('<zip_file_name>.zip')
replacing <zip_file_name> with the name of the zip file that you downloaded (e.g., smlink.r2014b.win64). The command extracts the zip archive files to the MATLAB root directory
Register SimMechanics Link
To register SimMechanics Link with the CAD platform:
Start a new MATLAB® session.
-
MATLAB displays a message stating that linking was successful. You can close MATLAB.
Add SimMechanics Link to SolidWorks Menu bar
SimMechanics Link is now registered as a SolidWorks add-in tool. To use the tool, select the tool as an active add-in:
Open SolidWorks.
In the menu bar, select Tools > Add-Ins.
In the Add-Ins dialog box, select SimMechanics Link.
The menu bar of the CAD platform displays a SimMechanics Link menu item.