Documentation

Enable SimMechanics Link Creo-Pro/E Plug-In

About the Plug-In

The SimMechanics Link plug-in provides the primary interface for exporting CAD assemblies into SimMechanics software. The plug-in is compatible with three CAD applications: Autodesk Inventor®, Creo™ Parametric, and SolidWorks®. If you use a different CAD application, you can still export CAD assemblies using the SimMechanics Import XML schema.

To enable the plug-in in Creo or Pro/E, you must manually update the contents of protk.dat, a registry file. If you store this file outside of the Creo or Pro/E root and startup folders, you must also update the contents of config.pro, a configuration file. If you have not done so, download and install the SimMechanics Link plug-in before continuing.

Update Registry File

Locate and open the protk.dat registry file for your Creo or Pro/E application. Search for this file in the application's root and startup folders. Add this code to the file, replacing matlabroot with the absolute path to your MATLAB® root folder and os with your operating system, e.g., win64.

name SimMechanics Link
startup dll
exec_flie matlabroot\bin\os\cl_proe2sm.dll
text_dir matlabroot\toolbox\physmod\smlink\cad_systems\proe\text
end
If you use Pro/ENGINEER Wildfire version 3.0 or earlier, append this code to the file placing it above the end command:
unicode_encoding false
If you cannot find or edit the file, create a new text file with a name of your choosing and .dat extension. This is your registry file. Save it in an accessible folder.

Example

Suppose your MATLAB root folder is c:\program files\MATLAB\R2014a and your operating system is win64. If you are using Creo Parametric software, then your .dat registry file must contain this code:

name SimMechanics Link
startup dll
exec_file c:\program files\MATLAB\R2014a\bin\win64\cl_proe2sm.dll
text_dir c:\program files\MATLAB\R2014a\toolbox\physmod\smlink\cad_systems\proe\text
end

Update Configuration File

If your .dat registry file is located outside of the root and startup folders, you must also update the config.pro file. Search for this file in your Creo or Pro/E startup folder. Open the file and add this code:

toolkit_registry_file <full path to your .dat registry file>
If you cannot find the file, create a new text file and save it as config.pro in your startup folder. You may need administrator privileges.

Example

Suppose you saved your .dat registry file as myprotk.dat in the folder c:users\jdoe\documents\creo. Here is the code you must add to your config.pro file:

toolkit_registry_file c:\users\jdoe\documents\creo\myprotk.dat

Verify Plug-In Is Enabled

Start your Creo Parametric or Pro/ENGINEER application. In Creo Parametric, search for a Tools menu with a SimMechanics Link option. In Pro/ENGINEER Wildfire, search for a SimMechanics Link menu. If the option or menu is present, the plug-in is enabled. You are ready to start exporting CAD assemblies.

Updating Plug-In Version

If you are updating your SimMechanics Link version, you must update the exec_file and text_dir paths in your .dat registry file. Suppose you upgraded your MATLAB and SimMechanics Link software to release R2014b. If the MATLAB root folder is otherwise unchanged, the new exec_file and text_dir lines must be:

exec_file c:\program files\MATLAB\R2014b\bin\win64\cl_proe2sm.dll
text_dir c:\program files\MATLAB\R2014b\toolbox\physmod\smlink\cad_systems\proe\text

Was this topic helpful?