How do I rename or move a model without losing the externally saved requirements links (SLMX file)

23 views (last 30 days)
Renaming or moving a model with attached requirements stored in a SLREQX file and links in a SLMX file damages the links and generates a warning:
"Unable to locate Requirement Set"
I can solve this manually by unpacking the SLMX files, fixing the content of the XML's, and re-packing in a SLMX.  However, I would expect this is something that can be handled by Simulink project when renaming and moving the model files.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Jan 2023
Unfortunately, Simulink is not able to update the links if the model is renamed or moved using the operating system's file system. However, Simulink is able to recognize and automatically handle these dependencies and changes as long as you use "Save As" in Simulink to rename or move the model. Since "Save As" creates a new model and new SLMX file, you may want to delete the old files if your goal is only to rename or move files, rather than create new files.

More Answers (0)

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!