Documentation Center

  • Trial Software
  • Product Updates

Install and Register SimMechanics Link Software

Installation Requirements

Before installing the SimMechanics™ Link utility, check that an active installation of the following software exists on your computer:

  • MATLAB®

  • Supported CAD platform

MATLAB and SimMechanics Link must belong to the same release. For example, if your MATLAB release is R2012b, then your SimMechanics Link release must also be R2012b. Combining different release numbers can cause installation errors.

SimMechanics Link supports three CAD platforms:

  • SolidWorks®

  • Autodesk Inventor®

  • PTC® Creo™ (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).

Download SimMechanics Link Software

You can download SimMechanics Link software directly from the MathWorks® website:

  1. Visit the SimMechanics Link download website at http://www.mathworks.com/products/simmechanics/download_smlink.html.

  2. Select the software version to install.

  3. Click Submit.

  4. 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:

  1. Start MATLAB.

      Note:   You may need administrator privileges to complete the installation.

  2. 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.

  3. 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.r2012b.win64). The command extracts the zip archive files to the MATLAB root directory.

Register SimMechanics Link Utility with CAD Platform

Complete the installation by registering your 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.

To register with CAD platform......Click here
Autodesk InventorRegister SimMechanics Link with Inventor

PTC Creo (Pro/ENGINEER)

Register SimMechanics Link with Creo
SolidWorksRegister SimMechanics Link with SolidWorks

Link External Application to SimMechanics Link Software

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.

Register MATLAB as Automation Server

Each time you use the SimMechanics Link utility with a CAD platform or other external application, the utility attempts to connect to MATLAB.

Registration Requirements

Successful connection requires the following to be true:

  • Matching MATLAB and SimMechanics Link release numbers (e.g. both release numbers R2012b)

  • MATLAB registration as automation server.

Enable Automation Server Mode

You can register MATLAB as an automation server in two ways:

ConditionRegistration Procedure
MATLAB session open in desktop mode

At the MATLAB command line, enter regmatlabserver.

The command registers the current MATLAB session as an automation server.

At the MATLAB command line, enter enableservice('AutomationServer',true).

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 matlab -regserver.

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 regmatlabserver command.

    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.

Connection from External Application to MATLAB Automation Server

Invoking the SimMechanics Link utility from an external application produces one of the following results:

ConditionRequired ActionResult
No MATLAB session openNone
  • New MATLAB session opens in automation server mode

  • SimMechanics Link connects to MATLAB automation server

MATLAB server open in automation server modeNone
  • SimMechanics Link connects to MATLAB automation server

MATLAB session open in desktop modeRegister MATLAB session as automation server. See Enable Automation Server Mode.
  • SimMechanics Link connects to MATLAB automation server

Unregister SimMechanics Link Software

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 InventorRegister SimMechanics Link with Inventor

PTC Creo (Pro/ENGINEER)

Register SimMechanics Link with Creo
SolidWorksRegister SimMechanics Link with SolidWorks

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.

Was this topic helpful?