Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Solidworks to simmechanics: export option missing from menu
Date: Sun, 1 Nov 2009 21:14:01 +0000 (UTC)
Organization: University of Nottingham
Lines: 29
Message-ID: <hcktmp$ehq$1@fred.mathworks.com>
References: <hc4rr3$a6h$1@fred.mathworks.com> <hc4tfi$qea$1@fred.mathworks.com> <hc6j5f$c45$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 1257110041 14906 172.30.248.38 (1 Nov 2009 21:14:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 1 Nov 2009 21:14:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1075601
Xref: news.mathworks.com comp.soft-sys.matlab:581674



> >
> 
> Yes, you need to register MATLAB as an automation server. In Pro/E, there is 
> an export to SimMechanics option in the SimMechanics menu item, but I think 
> in SolidWorks it's different, you just do File -> Save As... -> SimMechanics 
> (.XML).
> 
> Arnaud 
> 


********************************************************

Many thanks Arnaud i have now managed to sucessfully export the xml file, but im still having trouble importing the xml file into simmechanics i keep getting the following error message when i use the import_physmod command to try and import the xml file: 

Warning: Undefined function or variable 'mech_import'.
> In C:\Program Files\MATLAB\R2008a\toolbox\physmod\pmimport\pmimport\pmiu_dlg.p>OkBtn_Callback at 175
  In gui_mainfcn at 96
  In C:\Program Files\MATLAB\R2008a\toolbox\physmod\pmimport\pmimport\pmiu_dlg.p>pmiu_dlg at 44


I am using matlab 2008a - that is why i used the import_physmod command and not the mech_import command. 

Would you be able to shed any light on this error message as i cant find any way to fix it. 

Many  thanks

Tegan