Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: simmechanics link install help PRO/E
Date: Thu, 19 Nov 2009 17:19:21 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 40
Message-ID: <he3ump$97m$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1258651161 9462 172.30.248.38 (19 Nov 2009 17:19:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 19 Nov 2009 17:19:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2078227
Xref: news.mathworks.com comp.soft-sys.matlab:586489


Hi, I am trying to install simmechanics link 3.1.1 with matlab r2009b and connect to pro/e wildfire 4.

First step, download r2009b zip file containing relevent folders for simmechanics link. also downloaded install_addon.m

run the install from matlab command line. Apparently all was installed succesfully.

Now I am supposed to edit the config.pro file of pro/e, and adjust it to point at a registry file I have created. 

This is where I am confused. From the matlab instructions on linking with pro e, and a search through the forums, I am supposed to make a registry file with the following lines of code in it.

name SimMechanics Link
startup dll
exec_file $F:\Program Files\MATLAB\R2009b/bin/win32/cl_proe2sm.dll
text_dir $F:\Program Files\MATLAB\R2009b/toolbox/physmod/smlink/cad_systems/proe/
unicode_encoding false
end

F is where my pro e and matlab are intalled.

I named it proe2sm.dat and it now appears in my pro e bin folder as a dat file.

I chose to put it in the bin folder because apparently it should be in the pro e startup folder.

I start the automated server in matlab by typing at the command line:
h = actxserver('matlab.application')

It responds:

h =
 
	COM.matlab_application
and a matlab command window appears

If i type enableservice('AutomationServer') at the matlab command line, it returns 0. If I type it in the matlab command window that appeared it returns 1. So i think the automated server is running. 

But when I open pro e I get warnings about duplicate pro/toolkits and then smlink cannot be found/doesnt exist.

where did i go wrong?

thanks