MATLAB: Do I receive an error message when I try to import a SolidWorks model into SimMechanics 2.1 (R13.0.1+)

errorextensionimport_physmodsimmechanicsSimscape Multibodysolidworksxml

I receive an error when specifying a short filename without the explicit '.xml' extension. For example, when trying to import the file 'xx.xml', the following command would error out:
import_physmod('xx')

Best Answer

This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This is a bug in SimMechanics 2.1 [R13+] in the way that 'import_physmod' handles short file names. Our development staff is investigating this issue.
Currently, to work around this issue, when dealing with short filenames, include the extension explicitly. That is, use import_physmod('xx.xml') rather than import_physmod('xx'). Note that import_physmod('longfilename') should still work.