Can't import cad assembly parameters when using smimport()

14 views (last 30 days)
I'm trying to run this command:
>> smimport('DIppolito_planar_arm')
and I'm getting this error:
Loading C:\Program Files\MATLAB\R2021b\bin\win64\builtins\physmod\sm\sli\mwphysmod_sm_sli_import_builtinimpl.dllfailed with
error: Impossibile trovare il modulo specificato.
: not connected: not connected
I tried changing the command to
>> smimport('DIppolito_planar_arm.xml')
but nothing changed.
I had issues earlier while installing the Simscape Multibody add-on but this seems almost unrelated
I did also type the commands regmatlabserver and smlink_linkinv as it was indicated towards the end of this guide: Install the Simscape Multibody Link Plugin - MATLAB & Simulink - MathWorks:
>> regmatlabserver
>> smlink_linkinv
Registering dll: regsvr32 "C:\Program Files\MATLAB\R2021b\bin\win64\cl_inventor2sm.dll"
>> smimport('DIppolito_planar_arm.xml')
Loading C:\Program
Files\MATLAB\R2021b\bin\win64\builtins\physmod\sm\sli\mwphysmod_sm_sli_import_builtinimpl.dllfailed
with error: Impossibile trovare il modulo specificato.
: not connected: not connected
but it's almost as if they don't matter.
I exported the .xml from an assembly that I made in Fusion 360 and also saved as a .iam file for Inventor. Actually I was told from my professor to export it as a .xml file from inventor (not from Fusion) and to convert all commas to dots so that Matlab could read them.
This whole process is kind of confusing and I hope my explanation is enough to understand what's the issue, and maybe explain what am I doing wrong.

Answers (1)

Steve Miller
Steve Miller on 25 Nov 2022
Hi - this page tells you which versions of CAD software support a connection with Simscape Multibody Link:
If you have one of these CAD software packages installed with the versions we list, and you manage to enable the plugin, you should get an XML file that you can import. If you manage to export an XML, if you upload it we can look into it further.
--Steve

Categories

Find more on Model Import in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!