|
> Here's what I did with mine and it works (I assume that you have downloaded
> and installed the correct version of SimMechanics Link, i.e. if Pro/E is
> 32-bit, then MATLAB and SimMechanics Link need to be 32-bit too; v3.1.1 is
> the correct version for R2009b):
>
> * I created a directory called C:\Work\proeStartUp_WF4
> * In that directory, I have a config.pro and a protk.dat file.
> * The protk.dat file is as follows (I don't think you need a $ in front of
> the drive letter):
>
> NAME SimMechanics Link
> STARTUP dll
> EXEC_FILE C:\Program Files\MATLAB\R2009b\bin\win32\cl_proe2sm.dll
> TEXT_DIR C:\Program
> Files\MATLAB\R2009b\toolbox\physmod\smlink\cad_systems\proe\text
> UNICODE_ENCODING false
> END
>
> and the config.pro as follows:
>
> toolkit_registry_file C:\Work\proeStartUp_WF4\protk.dat
>
> * In MATLAB, I have a startup.m file on my MATLAB path with (amongst other
> things), the following line (note you need to have administrator rights for
> this to work):
> enableservice('automationserver',true);
>
>
> * I have edited the shortcut to Pro/E WF4 on my desktop to start in
> C:\Work\proeStartUp_WF4. When I double-click on the shortcut, Pro/E starts
> up and SimMechanics Link appears as a menu item.
>
> HTH,
>
> Arnaud
>
Thanks Arnaud, now Pro e openst the splash screen but doesnt make it any further than that.
This is what I have.
At the location
F:\ProEngineer\matlab\proeStartUp_WF4
I have in that folder config.pro only includes the line:
toolkit_registry_file F:\ProEngineer\matlab\proeStartUp_WF4\protk.dat
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
I have the protk.dat file which has inside of 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\text
UNICODE_ENCODING false
END
I was slightly confused about the startup.m file. At the moment all it has in it is the line
enableservice('automationserver',true);
and is saved in
E:\Documents and Settings\Alex\MATLAB
which is the folder that matlab initially looks at when you open it.
I opened the properties to PRO E shortcut, and in the start in line, I added
F:\ProEngineer\matlab\proeStartUp_WF4
at the location
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
ERROR - F:\ProEngineer\text\config.pro, linenum 3 : Keyword 'ACTIVATE_SKETCH_WITH_DFLT' is not valid.
ERROR - F:\ProEngineer\text\config.pro, linenum 6 : Keyword 'ADOBE_DISTILLER' is not valid.
ERROR - F:\ProEngineer\text\config.pro, linenum 15: Keyword 'ALLOW_MULTIPLE_TOOL_TIPS' is not valid.
the config.pro file i created ONLY has the line
toolkit_registry_file F:\ProEngineer\matlab\proeStartUp_WF4\protk.dat
The only positive, is when I run matlab and check to see whether the server is working it returns 1.
thanks again
Alex
|