Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
error with the simmechanics cad translator

Subject: error with the simmechanics cad translator

From: pietro

Date: 26 Sep, 2012 20:46:07

Message: 1 of 3

Hi all,

I want to link matlab 2011b with solidworks 2010. So I downloaded the file: smlink.r2011b.win32 and the install_addon script file. Even if matlab is started as administrator, I get the error that some folders cannot be created, but finally I get the message: "Adding directories for smlink to path Installation of smlink complete."
After this I typed smlink_linksw and I get that everything is fine. But when I try to import a file with smimport, I get the following message: Undefined function 'smimport' for input arguments of type 'char'.

So what's wrong?

Thanks

Pietro

Subject: error with the simmechanics cad translator

From: Tony

Date: 26 Sep, 2012 23:37:07

Message: 2 of 3

Hi Pietro,

"smimport" is a second-generation command that does not work with releases prior to R2012a. To import a CAD assembly into SimMechanics R2011b, you need to use the first-generation command, mech_import, instead. The same is also true of releases after R2012a _if_ you want to import the assembly into a first-generation model (second-generation technology was introduced in release R2012a).

Hope that helps some,
- Tony

"pietro " <bracardi82@email.it> wrote in message <k3vpif$rsl$1@newscl01ah.mathworks.com>...
> Hi all,
>
> I want to link matlab 2011b with solidworks 2010. So I downloaded the file: smlink.r2011b.win32 and the install_addon script file. Even if matlab is started as administrator, I get the error that some folders cannot be created, but finally I get the message: "Adding directories for smlink to path Installation of smlink complete."
> After this I typed smlink_linksw and I get that everything is fine. But when I try to import a file with smimport, I get the following message: Undefined function 'smimport' for input arguments of type 'char'.
>
> So what's wrong?
>
> Thanks
>
> Pietro

Subject: error with the simmechanics cad translator

From: pietro

Date: 27 Sep, 2012 07:30:08

Message: 3 of 3

"Tony" wrote in message <k403j3$2tq$1@newscl01ah.mathworks.com>...
> Hi Pietro,
>
> "smimport" is a second-generation command that does not work with releases prior to R2012a. To import a CAD assembly into SimMechanics R2011b, you need to use the first-generation command, mech_import, instead. The same is also true of releases after R2012a _if_ you want to import the assembly into a first-generation model (second-generation technology was introduced in release R2012a).
>
> Hope that helps some,
> - Tony
>
> "pietro " <bracardi82@email.it> wrote in message <k3vpif$rsl$1@newscl01ah.mathworks.com>...
> > Hi all,
> >
> > I want to link matlab 2011b with solidworks 2010. So I downloaded the file: smlink.r2011b.win32 and the install_addon script file. Even if matlab is started as administrator, I get the error that some folders cannot be created, but finally I get the message: "Adding directories for smlink to path Installation of smlink complete."
> > After this I typed smlink_linksw and I get that everything is fine. But when I try to import a file with smimport, I get the following message: Undefined function 'smimport' for input arguments of type 'char'.
> >
> > So what's wrong?
> >
> > Thanks
> >
> > Pietro

Thanks a lot Tony, with mech_import works!

Best regards

Pietro

Tags for this Thread

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.

Contact us