Thread Subject: Solidworks to simmechanics: export option missing from menu

Subject: Solidworks to simmechanics: export option missing from menu

From: tegan pringle

Date: 26 Oct, 2009 19:04:03

Message: 1 of 5

Hello,

I have recently installed simmechanics link into my copy of matlab and then connected the simmechanics link to my solidworks software so that i can export models to simmechanics.

This took me a while but eventually they all linked up and i can add simmechanics into solidworks as an 'add-in' now.

The problem im having is that when i go to the simmechanics menu within solidworks (on the top tool menu) - the 'export to xml' option is missing - im totally confused because the all the other menu options are there - like export settings etc

Does anybody know how i can get the export option to show up on the menu?

Many thanks

T x

Subject: Solidworks to simmechanics: export option missing from menu

From: tegan pringle

Date: 26 Oct, 2009 19:32:02

Message: 2 of 5

"tegan pringle" <tegan83@hotmail.com> wrote in message <hc4rr3$a6h$1@fred.mathworks.com>...
> Hello,
>
> I have recently installed simmechanics link into my copy of matlab and then connected the simmechanics link to my solidworks software so that i can export models to simmechanics.
>
> This took me a while but eventually they all linked up and i can add simmechanics into solidworks as an 'add-in' now.
>
> The problem im having is that when i go to the simmechanics menu within solidworks (on the top tool menu) - the 'export to xml' option is missing - im totally confused because the all the other menu options are there - like export settings etc
>
> Does anybody know how i can get the export option to show up on the menu?
>
> Many thanks
>
> T x




*****UPDATE: PROBLEM FIXED****************************************

I have fixed the problem - i forgot to register matlab as an automation server, i now have the option to save models as *XML files - but i guess it doesnt put an 'export' option on the simmechanics menu within solidworks.

Hopefully that bit of info will help somebody else with the same problem

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

Subject: Solidworks to simmechanics: export option missing from menu

From: Arnaud Miege

Date: 27 Oct, 2009 10:48:15

Message: 3 of 5


"tegan pringle" <tegan83@hotmail.com> wrote in message
news:hc4tfi$qea$1@fred.mathworks.com...
> "tegan pringle" <tegan83@hotmail.com> wrote in message
> <hc4rr3$a6h$1@fred.mathworks.com>...
>> Hello,
>>
>> I have recently installed simmechanics link into my copy of matlab and
>> then connected the simmechanics link to my solidworks software so that i
>> can export models to simmechanics.
>>
>> This took me a while but eventually they all linked up and i can add
>> simmechanics into solidworks as an 'add-in' now.
>>
>> The problem im having is that when i go to the simmechanics menu within
>> solidworks (on the top tool menu) - the 'export to xml' option is
>> missing - im totally confused because the all the other menu options are
>> there - like export settings etc
>>
>> Does anybody know how i can get the export option to show up on the menu?
>>
>> Many thanks
>>
>> T x
>
>
>
>
> *****UPDATE: PROBLEM FIXED****************************************
>
> I have fixed the problem - i forgot to register matlab as an automation
> server, i now have the option to save models as *XML files - but i guess
> it doesnt put an 'export' option on the simmechanics menu within
> solidworks.
>
> Hopefully that bit of info will help somebody else with the same problem
>
> ************************************************************
>

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

Subject: Solidworks to simmechanics: export option missing from menu

From: tegan pringle

Date: 1 Nov, 2009 21:14:01

Message: 4 of 5


> >
>
> 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

Subject: Solidworks to simmechanics: export option missing from menu

From: Leotrisport

Date: 19 Nov, 2009 03:38:58

Message: 5 of 5

On 1 nov, 19:14, "tegan pringle" <tega...@hotmail.com> wrote:
> > Yes, you need to register MATLAB as an automation server. In Pro/E, there is
> > an export toSimMechanicsoption in theSimMechanicsmenu 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 intosimmechanicsi 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_Call back 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

Hi Tegan I'm writing some tutorials using SimMechanics, in this
tutorial I'm modeling a servomotor please take a look and see if it
helps
http://www.tutoriaisengenharia.com/Electronics_Engineering/Actuators/Servomotor.php

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
simmechnics link lauren smith 26 Oct, 2009 15:09:04
solidworks lauren smith 26 Oct, 2009 15:09:04
export lauren smith 26 Oct, 2009 15:09:04
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com