Main Content


(Not recommended) Update external requirement document paths and file names

    Using rmidocrename is not recommended. Use updateDocUri instead.



    rmidocrename(model,old_path,new_path) updates the link destination for the links associated with the model model from the external document specified by old_path to the new external document specified by new_path. Use this function when you change the name or file path of the external document.


    collapse all

    This example shows how to change the link destination for links associated with a Simulink® model.

    Open the slvnvdemo_fuelsys_officereq model.

    model = "slvnvdemo_fuelsys_officereq";

    Find the links in the model that point to slvnvdemo_FuelSys_DesignDescription.docx and update the destination to slvnvdemo_FuelSys_DesignDescription_new.docx.

    oldpath = "slvnvdemo_FuelSys_DesignDescription.docx";
    newpath = "slvnvdemo_FuelSys_DesignDescription_new.docx";
    Processed 16 objects with requirements, 8 out of 16 links were modified.

    Input Arguments

    collapse all

    Name or handle of a Simulink® model, specified as a string scalar, character vector, or model handle.

    File path for the original external document, specified as a string scalar or character vector.

    File path for the new external document, specified as a string scalar or character vector.


    • If you rename or move an external requirements document file, use updateSrcFileLocation to update the file name or path of the referenced requirements in the requirement set.

    Version History

    Introduced in R2009b

    expand all