Before installing the SimMechanics™ Link utility, check that an active installation of the following software exists on your computer:
Supported CAD platform
MATLAB and SimMechanics Link must belong to the same release. For example, if your MATLAB release is R2014b, then your SimMechanics Link release must also be R2014b. Combining different release numbers can cause installation errors.
SimMechanics Link supports three CAD platforms:
PTC® Creo™ (formerly Pro/ENGINEER®)
You can use the SimMechanics Link utility to export a CAD assembly from any of these CAD platforms. Note that MATLAB, SimMechanics Link, and your CAD platform must share the same architecture (e.g. 64-bit).
You can download SimMechanics Link software directly from the MathWorks® website:
Visit the SimMechanics Link download website at
Select the software version to install.
Save the installation files in a convenient folder.
Do not extract the zip file.
Install SimMechanics Link software from the MATLAB command line:
Note: You may need administrator privileges to complete the installation.
At the MATLAB command line enter:
<installation_file_folder>with the path to the folder with the installation files.
At the MATLAB command line, enter:
<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.
Complete the installation by registering the SimMechanics Link utility with your CAD platform. The registration procedure makes SimMechanics Link available in your CAD platform as an Add-In tool. Once you have completed the linking procedure, you can use the Add-In tool to export a CAD assembly directly from your CAD platform.
The registration procedure is different for each supported CAD platform. The following table provides platform-specific registration information. Click the link that matches your CAD platform, and complete the registration procedure.
You can link an unsupported CAD platform or other external application to SimMechanics software. For this task, SimMechanics Link provides an application programming interface (API) with a set of functions that you can use to create a C/C++ custom export module. For an overview of custom export using the API, see Custom Export with SimMechanics Link API.
Each time you use the SimMechanics Link utility with a CAD platform or other external application, the utility attempts to connect to MATLAB.
Successful connection requires the following to be true:
Matching MATLAB and SimMechanics Link release numbers (e.g. both release numbers R2014b)
MATLAB registration as automation server.
You can register MATLAB as an automation server in two ways:
|MATLAB session open in desktop mode|
At the MATLAB command line, enter
The command registers the current MATLAB session as an automation server.
At the MATLAB command line, enter
The command enables the current MATLAB session as an automation server.
|MATLAB session not open|
At the operating system command prompt, enter
matlab -automation -desktop
The prompt starts a new MATLAB session in automation server mode.
At the operating system command prompt, enter command
The command opens a new MATLAB session in automation server mode. You can close the MATLAB session.
A single MATLAB automation
server registration can be active at a time. If multiple MATLAB sessions
are open in your system, you must first disable
the active registration and then register the
desired MATLAB session as an automation server using the
Caution If your system does not have an active MATLAB automation server registration, SimMechanics Link issues a error when it attempts to connect. In the event of a connection error, check that a MATLAB automation server is active in your system. If necessary, register MATLAB as an automation server.
Invoking the SimMechanics Link utility from an external application produces one of the following results:
|No MATLAB session open||None|
|MATLAB server open in automation server mode||None|
|MATLAB session open in desktop mode||Register MATLAB session as automation server. See Enable Automation Server Mode.|
SimMechanics Link contains no uninstaller. If you no longer wish to use the SimMechanics Link utility in your CAD platform, you can unregister the utility. The following table provides information on the unlinking procedure for each CAD platform. Click the link that matches your CAD platform.
|To link CAD platform...||...click here|
|Autodesk Inventor||Enable SimMechanics Link Inventor Plug-In|
PTC Creo (Pro/ENGINEER)
|Enable SimMechanics Link Creo-Pro/E Plug-In|
|SolidWorks||Enable SimMechanics Link SolidWorks Plug-In|
To register a different version of SimMechanics Link with your CAD platform, first unregister any currently registered version you may have. Then, register the desired version. To register and unregister the utility, follow the links provided in the previous table.