<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/266341</link>
    <title>MATLAB Central Newsreader - simmechanics link install help PRO/E</title>
    <description>Feed for thread: simmechanics link install help PRO/E</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 19 Nov 2009 17:19:21 -0500</pubDate>
      <title>simmechanics link install help PRO/E</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/266341#696134</link>
      <author>Alex </author>
      <description>Hi, I am trying to install simmechanics link 3.1.1 with matlab r2009b and connect to pro/e wildfire 4.&lt;br&gt;
&lt;br&gt;
First step, download r2009b zip file containing relevent folders for simmechanics link. also downloaded install_addon.m&lt;br&gt;
&lt;br&gt;
run the install from matlab command line. Apparently all was installed succesfully.&lt;br&gt;
&lt;br&gt;
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. &lt;br&gt;
&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
name SimMechanics Link&lt;br&gt;
startup dll&lt;br&gt;
exec_file $F:\Program Files\MATLAB\R2009b/bin/win32/cl_proe2sm.dll&lt;br&gt;
text_dir $F:\Program Files\MATLAB\R2009b/toolbox/physmod/smlink/cad_systems/proe/&lt;br&gt;
unicode_encoding false&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
F is where my pro e and matlab are intalled.&lt;br&gt;
&lt;br&gt;
I named it proe2sm.dat and it now appears in my pro e bin folder as a dat file.&lt;br&gt;
&lt;br&gt;
I chose to put it in the bin folder because apparently it should be in the pro e startup folder.&lt;br&gt;
&lt;br&gt;
I start the automated server in matlab by typing at the command line:&lt;br&gt;
h = actxserver('matlab.application')&lt;br&gt;
&lt;br&gt;
It responds:&lt;br&gt;
&lt;br&gt;
h =&lt;br&gt;
&amp;nbsp;&lt;br&gt;
	COM.matlab_application&lt;br&gt;
and a matlab command window appears&lt;br&gt;
&lt;br&gt;
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. &lt;br&gt;
&lt;br&gt;
But when I open pro e I get warnings about duplicate pro/toolkits and then smlink cannot be found/doesnt exist.&lt;br&gt;
&lt;br&gt;
where did i go wrong?&lt;br&gt;
&lt;br&gt;
thanks</description>
    </item>
    <item>
      <pubDate>Thu, 19 Nov 2009 21:44:25 -0500</pubDate>
      <title>Re: simmechanics link install help PRO/E</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/266341#696227</link>
      <author>Arnaud Miege</author>
      <description>&lt;br&gt;
&quot;Alex &quot; &amp;lt;a.mlw.walker@googlemail.com&amp;gt; wrote in message &lt;br&gt;
news:he3ump$97m$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi, I am trying to install simmechanics link 3.1.1 with matlab r2009b and &lt;br&gt;
&amp;gt; connect to pro/e wildfire 4.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; First step, download r2009b zip file containing relevent folders for &lt;br&gt;
&amp;gt; simmechanics link. also downloaded install_addon.m&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; run the install from matlab command line. Apparently all was installed &lt;br&gt;
&amp;gt; succesfully.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Now I am supposed to edit the config.pro file of pro/e, and adjust it to &lt;br&gt;
&amp;gt; point at a registry file I have created.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This is where I am confused. From the matlab instructions on linking with &lt;br&gt;
&amp;gt; pro e, and a search through the forums, I am supposed to make a registry &lt;br&gt;
&amp;gt; file with the following lines of code in it.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; name SimMechanics Link&lt;br&gt;
&amp;gt; startup dll&lt;br&gt;
&amp;gt; exec_file $F:\Program Files\MATLAB\R2009b/bin/win32/cl_proe2sm.dll&lt;br&gt;
&amp;gt; text_dir $F:\Program &lt;br&gt;
&amp;gt; Files\MATLAB\R2009b/toolbox/physmod/smlink/cad_systems/proe/&lt;br&gt;
&amp;gt; unicode_encoding false&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; F is where my pro e and matlab are intalled.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I named it proe2sm.dat and it now appears in my pro e bin folder as a dat &lt;br&gt;
&amp;gt; file.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I chose to put it in the bin folder because apparently it should be in the &lt;br&gt;
&amp;gt; pro e startup folder.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I start the automated server in matlab by typing at the command line:&lt;br&gt;
&amp;gt; h = actxserver('matlab.application')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; It responds:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; h =&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; COM.matlab_application&lt;br&gt;
&amp;gt; and a matlab command window appears&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If i type enableservice('AutomationServer') at the matlab command line, it &lt;br&gt;
&amp;gt; returns 0. If I type it in the matlab command window that appeared it &lt;br&gt;
&amp;gt; returns 1. So i think the automated server is running.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; But when I open pro e I get warnings about duplicate pro/toolkits and then &lt;br&gt;
&amp;gt; smlink cannot be found/doesnt exist.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; where did i go wrong?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; thanks&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Here's what I did with mine and it works (I assume that you have downloaded &lt;br&gt;
and installed the correct version of SimMechanics Link, i.e. if Pro/E is &lt;br&gt;
32-bit, then MATLAB and SimMechanics Link need to be 32-bit too; v3.1.1 is &lt;br&gt;
the correct version for R2009b):&lt;br&gt;
&lt;br&gt;
* I created a directory called C:\Work\proeStartUp_WF4&lt;br&gt;
* In that directory, I have a config.pro and a protk.dat file.&lt;br&gt;
* The protk.dat file is as follows (I don't think you need a $ in front of &lt;br&gt;
the drive letter):&lt;br&gt;
&lt;br&gt;
NAME       SimMechanics Link&lt;br&gt;
STARTUP    dll&lt;br&gt;
EXEC_FILE  C:\Program Files\MATLAB\R2009b\bin\win32\cl_proe2sm.dll&lt;br&gt;
TEXT_DIR   C:\Program &lt;br&gt;
Files\MATLAB\R2009b\toolbox\physmod\smlink\cad_systems\proe\text&lt;br&gt;
UNICODE_ENCODING   false&lt;br&gt;
END&lt;br&gt;
&lt;br&gt;
and the config.pro as follows:&lt;br&gt;
&lt;br&gt;
toolkit_registry_file C:\Work\proeStartUp_WF4\protk.dat&lt;br&gt;
&lt;br&gt;
* In MATLAB, I have a startup.m file on my MATLAB path with (amongst other &lt;br&gt;
things), the following line (note you need to have administrator rights for &lt;br&gt;
this to work):&lt;br&gt;
enableservice('automationserver',true);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
* I have edited the shortcut to Pro/E WF4 on my desktop to start in &lt;br&gt;
C:\Work\proeStartUp_WF4. When I double-click on the shortcut, Pro/E starts &lt;br&gt;
up and SimMechanics Link appears as a menu item.&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Arnaud </description>
    </item>
    <item>
      <pubDate>Mon, 23 Nov 2009 14:56:19 -0500</pubDate>
      <title>Re: simmechanics link install help PRO/E</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/266341#696836</link>
      <author>Alex </author>
      <description>&lt;br&gt;
&amp;gt; Here's what I did with mine and it works (I assume that you have downloaded &lt;br&gt;
&amp;gt; and installed the correct version of SimMechanics Link, i.e. if Pro/E is &lt;br&gt;
&amp;gt; 32-bit, then MATLAB and SimMechanics Link need to be 32-bit too; v3.1.1 is &lt;br&gt;
&amp;gt; the correct version for R2009b):&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; * I created a directory called C:\Work\proeStartUp_WF4&lt;br&gt;
&amp;gt; * In that directory, I have a config.pro and a protk.dat file.&lt;br&gt;
&amp;gt; * The protk.dat file is as follows (I don't think you need a $ in front of &lt;br&gt;
&amp;gt; the drive letter):&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; NAME       SimMechanics Link&lt;br&gt;
&amp;gt; STARTUP    dll&lt;br&gt;
&amp;gt; EXEC_FILE  C:\Program Files\MATLAB\R2009b\bin\win32\cl_proe2sm.dll&lt;br&gt;
&amp;gt; TEXT_DIR   C:\Program &lt;br&gt;
&amp;gt; Files\MATLAB\R2009b\toolbox\physmod\smlink\cad_systems\proe\text&lt;br&gt;
&amp;gt; UNICODE_ENCODING   false&lt;br&gt;
&amp;gt; END&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; and the config.pro as follows:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; toolkit_registry_file C:\Work\proeStartUp_WF4\protk.dat&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; * In MATLAB, I have a startup.m file on my MATLAB path with (amongst other &lt;br&gt;
&amp;gt; things), the following line (note you need to have administrator rights for &lt;br&gt;
&amp;gt; this to work):&lt;br&gt;
&amp;gt; enableservice('automationserver',true);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; * I have edited the shortcut to Pro/E WF4 on my desktop to start in &lt;br&gt;
&amp;gt; C:\Work\proeStartUp_WF4. When I double-click on the shortcut, Pro/E starts &lt;br&gt;
&amp;gt; up and SimMechanics Link appears as a menu item.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; HTH,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Arnaud &lt;br&gt;
&amp;gt; &lt;br&gt;
Thanks Arnaud, now Pro e openst the splash screen but doesnt make it any further than that.&lt;br&gt;
&lt;br&gt;
This is what I have.&lt;br&gt;
&lt;br&gt;
At the location &lt;br&gt;
F:\ProEngineer\matlab\proeStartUp_WF4&lt;br&gt;
I have in that folder config.pro only includes the line:&lt;br&gt;
&lt;br&gt;
toolkit_registry_file F:\ProEngineer\matlab\proeStartUp_WF4\protk.dat&lt;br&gt;
&lt;br&gt;
I tried to copy the original config.pro and just add the line to the bottom of it, but it caused errors. there are still errors though with just the above line in config.pro&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I have the protk.dat file which has inside of it&lt;br&gt;
&lt;br&gt;
NAME SimMechanics Link&lt;br&gt;
STARTUP dll&lt;br&gt;
EXEC_FILE F:\Program Files\MATLAB\R2009b\bin\win32\cl_proe2sm.dll&lt;br&gt;
TEXT_DIR F:\Program&lt;br&gt;
Files\MATLAB\R2009b\toolbox\physmod\smlink\cad_systems\proe\text&lt;br&gt;
UNICODE_ENCODING false&lt;br&gt;
END&lt;br&gt;
&lt;br&gt;
I was slightly confused about the startup.m file. At the moment all it has in it is the line&lt;br&gt;
enableservice('automationserver',true);&lt;br&gt;
and is saved in&lt;br&gt;
E:\Documents and Settings\Alex\MATLAB&lt;br&gt;
&lt;br&gt;
which is the folder that matlab initially looks at when you open it.&lt;br&gt;
&lt;br&gt;
I opened the properties to PRO E shortcut, and in the start in line, I added&lt;br&gt;
F:\ProEngineer\matlab\proeStartUp_WF4&lt;br&gt;
&lt;br&gt;
at the location&lt;br&gt;
F:\ProEngineer\matlab\proeStartUp_WF4 when i run pro e and it fails it creates a file called std.OUT which holds numerous errors, below are the first three&lt;br&gt;
&lt;br&gt;
ERROR - F:\ProEngineer\text\config.pro, linenum 3 :  Keyword 'ACTIVATE_SKETCH_WITH_DFLT' is not valid.&lt;br&gt;
ERROR - F:\ProEngineer\text\config.pro, linenum 6 :  Keyword 'ADOBE_DISTILLER' is not valid.&lt;br&gt;
ERROR - F:\ProEngineer\text\config.pro, linenum 15:  Keyword 'ALLOW_MULTIPLE_TOOL_TIPS' is not valid.&lt;br&gt;
&lt;br&gt;
the config.pro file i created ONLY has the line&lt;br&gt;
toolkit_registry_file F:\ProEngineer\matlab\proeStartUp_WF4\protk.dat&lt;br&gt;
&lt;br&gt;
The only positive, is when I run matlab and check to see whether the server is working it returns 1.&lt;br&gt;
&lt;br&gt;
thanks again&lt;br&gt;
&lt;br&gt;
Alex</description>
    </item>
    <item>
      <pubDate>Mon, 23 Nov 2009 16:56:44 -0500</pubDate>
      <title>Re: simmechanics link install help PRO/E</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/266341#696873</link>
      <author>Arnaud Miege</author>
      <description>&lt;br&gt;
&quot;Alex &quot; &amp;lt;a.mlw.walker@googlemail.com&amp;gt; wrote in message &lt;br&gt;
news:hee7qj$kf7$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Thanks Arnaud, now Pro e openst the splash screen but doesnt make it any &lt;br&gt;
&amp;gt; further than that.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This is what I have.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; At the location&lt;br&gt;
&amp;gt; F:\ProEngineer\matlab\proeStartUp_WF4&lt;br&gt;
&amp;gt; I have in that folder config.pro only includes the line:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; toolkit_registry_file F:\ProEngineer\matlab\proeStartUp_WF4\protk.dat&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I tried to copy the original config.pro and just add the line to the &lt;br&gt;
&amp;gt; bottom of it, but it caused errors. there are still errors though with &lt;br&gt;
&amp;gt; just the above line in config.pro&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have the protk.dat file which has inside of it&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; NAME SimMechanics Link&lt;br&gt;
&amp;gt; STARTUP dll&lt;br&gt;
&amp;gt; EXEC_FILE F:\Program Files\MATLAB\R2009b\bin\win32\cl_proe2sm.dll&lt;br&gt;
&amp;gt; TEXT_DIR F:\Program&lt;br&gt;
&amp;gt; Files\MATLAB\R2009b\toolbox\physmod\smlink\cad_systems\proe\text&lt;br&gt;
&amp;gt; UNICODE_ENCODING false&lt;br&gt;
&amp;gt; END&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I was slightly confused about the startup.m file. At the moment all it has &lt;br&gt;
&amp;gt; in it is the line&lt;br&gt;
&amp;gt; enableservice('automationserver',true);&lt;br&gt;
&amp;gt; and is saved in&lt;br&gt;
&amp;gt; E:\Documents and Settings\Alex\MATLAB&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; which is the folder that matlab initially looks at when you open it.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I opened the properties to PRO E shortcut, and in the start in line, I &lt;br&gt;
&amp;gt; added&lt;br&gt;
&amp;gt; F:\ProEngineer\matlab\proeStartUp_WF4&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; at the location&lt;br&gt;
&amp;gt; F:\ProEngineer\matlab\proeStartUp_WF4 when i run pro e and it fails it &lt;br&gt;
&amp;gt; creates a file called std.OUT which holds numerous errors, below are the &lt;br&gt;
&amp;gt; first three&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ERROR - F:\ProEngineer\text\config.pro, linenum 3 :  Keyword &lt;br&gt;
&amp;gt; 'ACTIVATE_SKETCH_WITH_DFLT' is not valid.&lt;br&gt;
&amp;gt; ERROR - F:\ProEngineer\text\config.pro, linenum 6 :  Keyword &lt;br&gt;
&amp;gt; 'ADOBE_DISTILLER' is not valid.&lt;br&gt;
&amp;gt; ERROR - F:\ProEngineer\text\config.pro, linenum 15:  Keyword &lt;br&gt;
&amp;gt; 'ALLOW_MULTIPLE_TOOL_TIPS' is not valid.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; the config.pro file i created ONLY has the line&lt;br&gt;
&amp;gt; toolkit_registry_file F:\ProEngineer\matlab\proeStartUp_WF4\protk.dat&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The only positive, is when I run matlab and check to see whether the &lt;br&gt;
&amp;gt; server is working it returns 1.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; thanks again&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Alex&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
It looks like Pro/E is looking at a different config.pro to the one you &lt;br&gt;
created in F:\ProEngineer\matlab\proeStartUp_WF4. Maybe rename the &lt;br&gt;
config.pro in F:\ProEngineer\text\ to something like config.old and see if &lt;br&gt;
that fixes it. You can then try adding the lines from &lt;br&gt;
F:\ProEngineer\text\config.old to &lt;br&gt;
F:\ProEngineer\matlab\proeStartUp_WF4\config.pro one a time to see if it &lt;br&gt;
still works. That should help you narrow down what's wrong. This seems to be &lt;br&gt;
more a Pro/E issue rather than a MATLAB one so you may have more luck on a &lt;br&gt;
Pro/E forum.&lt;br&gt;
&lt;br&gt;
HTH,&lt;br&gt;
&lt;br&gt;
Arnaud </description>
    </item>
  </channel>
</rss>

