Accelerating the pace of engineering and science

# Documentation

## Register SimMechanics Link with Creo

Registration is manual. You must create or modify registry and configuration files for the CAD platform.

### Software Requirements

Registration requires that two products be installed on your computer:

• CAD platform — Creo or Creo predecessor Pro/ENGINEER

### Registration Overview

The complete registration procedure contains two steps:

### Add Registration Text to Registry File

Registration requires access to registry file protk.dat. The registry file should exist in the protoolkit directory of your CAD platform. If you cannot locate the file, create a new registry file. Save the file in a convenient directory as <filename>.dat, where <filename> is a name of your choice.

To add registration text to the registry file:

1. Open the Pro/TOOLKIT application registry file. In the registry file, each line contains a predefined parameter followed by a value.

3. Save the registry file.

### Add Registry File Path to Configuration File

The configuration file has name config.pro. Look for the file in the following directories.

 Note:   The directory of file config.pro may differ from the directories provided.

If you cannot locate the configuration file for your CAD platform, create a new file. Use a text editor of your choice. Save the new file as <filename>.pro, where <filename> is a name of your choice. You must save the file in one of two folder:

• Startup folder

To find the startup folder, open the CAD platform and click File > Open.

2. At the bottom of the configuration file, add a new line with the absolute path to the registry file:

toolkit_registry_file <absolute_path>/<registry_filename>.dat

toolkit_registry_file is a predefined parameter that specifies the location of the registry file. <absolute_path> is the absolute path to the registry file. <registry_filename> is the name of the registry file.

This example illustrates the registration procedure for a Pro/ENGINEER CAD platform. In the example, you create new registry and configuration files:

• The registry file provides registration information for the SimMechanics Link utility.

• The configuration platform provides the location of the registry file. This step allows the CAD platform can load the SimMechanics Link add-in on startup.

#### Create Registry File

To create the registry file:

1. Create directory C:\data

2. With a text editor, create a new file.

3. In the new file, enter:

NAME SimMechanics Link
STARTUP dll
EXEC_FILE C:\Program Files\MATLAB\bin\win32\cl_proe2sm.dll
UNICODE_ENCODING false
END
4. Save the file in directory C:\data with name smlink.dat. This is the registry file that contains the registration information for SimMechanics Link.

#### Create Configuration File

To create the configuration file:

1. With a text editor, create a new file.

2. In the new file, enter:

toolkit_registry_file c:\data\smlink.dat
3. Save the file as config.pro in one of two directories:

<proeroot>/<arch>/text

proeroot is the root of the Pro/ENGINEER installation. For example,

C:/Program Files/Proe

arch is the architecture of the CAD installation. For example, x64.

• CAD startup directory — the directory a CAD session starts in.