Discussion:
error with the simmechanics cad translator
(too old to reply)
pietro
2012-09-26 20:46:07 UTC
Permalink
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
Tony
2012-09-26 23:37:07 UTC
Permalink
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
Post by pietro
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
pietro
2012-09-27 07:30:08 UTC
Permalink
Post by Tony
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
Post by pietro
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

Loading...