How do I rename or move a model without losing the externally saved requirements links (SLMX file)
    13 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    MathWorks Support Team
    
 le 26 Jan 2023
  
    
    
    
    
    Réponse apportée : MathWorks Support Team
    
 le 26 Jan 2023
            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.
Réponse acceptée
  MathWorks Support Team
    
 le 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. 
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!