How do I rename or move a model without losing the externally saved requirements links (SLMX file)
13 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2023-1-26
回答: MathWorks Support Team
2023-1-26
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.
采纳的回答
MathWorks Support Team
2023-1-26
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.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!