Error while trying to install Simscape Multibody Link Plug-In.
Show older comments
I'm trying to install the simscape multibody link using steps from this page, however when I run installaddon('smlink-r2026b-win64.zip') command I get the following error.
Error using copyfile
The location 'C:\Program Files\MATLAB\R2026b\resources\physmod\en\smlink\invaddin.xml'
was not found.
Error in installaddon (line 107)
copyfile(filePathTmpDir, destFile);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I also followed the steps to try and install it without MATLAB, but the Simscape Multibody Link option was not available in Solidworks (ver 2025) add-ins after following them.
Would appreciate some help to resolve this!
1 Comment
Torsten
on 26 Sep 2026 at 17:48
Answer from AI:
To resolve the copyfile error during the Simscape Multibody Link installation, you need to run MATLAB as an Administrator. [1, 2]
Because the installer tries to write and modify files inside the protected C:\Program Files directory, Windows blocks standard users from making changes, leading to the missing file or destination error. [1, 2]
Step-by-Step Fix
- Close MATLAB completely.
- Right-click the MATLAB R2026b desktop shortcut or the matlab.exe file in C:\Program Files\MATLAB\R2026b\bin\win64\.
- Select Run as administrator.
- In the MATLAB Command Window, re-run your installation command: [1]
matlab
installaddon('smlink-r2026b-win64.zip')
Alternative: Manual Path Reset
If running as an administrator still fails, your MATLAB folder cache might be out of sync. You can reset the path environment inside MATLAB using these commands: [1]
matlab
restoredefaultpath
rehash toolboxcache
If you don't succeed, contact support:
Answers (0)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!