Main Content

rmitag

Manage keywords for links

    Description

    rmitag(model,"add",keyword) adds the specified keyword keyword to the links associated with the model, model.

    example

    rmitag(model,"delete",keyword) deletes the keyword keyword from all links associated with the model.

    example

    rmitag(model,"replace",keyword,new_keyword) replaces the specified keyword keyword with the new keyword, new_keyword.

    example

    rmitag(model,"clear",keyword) removes the links that have the specified keyword keyword.

    example

    rmitag(___,doc_name) adds, deletes, or replaces keywords or deletes links where the full or partial document name matches the argument doc_name.

    example

    rmitag(model,"list") lists all keywords for the links associated with model.

    example

    Examples

    collapse all

    This example shows how to add keywords to the links associated with a Simulink® model.

    Open the slvnvdemo_fuelsys_officereq model.

    open_system("slvnvdemo_fuelsys_officereq");

    Add the keyword myTag to the links associated with the model.

    rmitag(gcs,"add","myTag");
    Processed objects: 16 (16 modified).
    Total links: 16 (16 modified).
    

    List the keywords for the links associated with the model.

    rmitag(gcs,"list")
    Processed objects: 16, total links: 16, found 4 unique tags:
                   myTag: 16
                    test: 2
             requirement: 6
                  design: 7
    

    This example shows how to delete keywords from the links associated with a Simulink® model.

    Open the slvnvdemo_fuelsys_officereq model.

    open_system("slvnvdemo_fuelsys_officereq");

    Delete the keyword test from the links associated with the model.

    rmitag(gcs,"delete","test");
    Processed objects: 16 (2 modified).
    Total links: 16 (2 modified).
    

    List the keywords for the links associated with the model.

    rmitag(gcs,"list")
    Processed objects: 16, total links: 16, found 2 unique tags:
             requirement: 6
                  design: 7
    

    This example shows how to replace keywords for links associated with a Simulink® model.

    Open the slvnvdemo_fuelsys_officereq model.

    open_system("slvnvdemo_fuelsys_officereq");

    Replace the keyword requirement with specification.

    rmitag(gcs,"replace","requirement","specification");
    Processed objects: 16 (6 modified).
    Total links: 16 (6 modified).
    

    List the user keywords for the links associated with the model.

    rmitag(gcs,"list")
    Processed objects: 16, total links: 16, found 3 unique tags:
                    test: 2
           specification: 6
                  design: 7
    

    This example shows how to delete links associated with a Simulink® model by using keywords.

    Open the slvnvdemo_fuelsys_officereq model.

    open_system("slvnvdemo_fuelsys_officereq");

    Delete the links associated with the model that have the user keyword design.

    rmitag(gcs,"clear","design");
    Processed objects: 16 (7 modified).
    Total links: 16 (7 cleared).
    

    List the user keywords for the links associated with the model.

    rmitag(gcs,"list")
    Processed objects: 9, total links: 9, found 2 unique tags:
                    test: 2
             requirement: 6
    

    This example shows how to add keywords to the links associated with a Simulink® model that point to a document.

    Open the slvnvdemo_fuelsys_officereq model.

    open_system("slvnvdemo_fuelsys_officereq");

    Add the keyword myTag to the links associated with the model and point the links to the slvnvdemo_FuelSys_DesignDescription document.

    rmitag(gcs,"add","myTag","slvnvdemo_FuelSys_DesignDescription.docx");
    Processed objects: 16 (8 modified).
    Total links: 16 (8 modified).
    

    List the keywords for the links associated with the model.

    rmitag(gcs,"list")
    Processed objects: 16, total links: 16, found 4 unique tags:
                   myTag: 8
                    test: 2
             requirement: 6
                  design: 7
    

    This example shows how to list the keywords for the links associated with a Simulink® model.

    Open the slvnvdemo_fuelsys_officereq model, then list the link keywords.

    open_system("slvnvdemo_fuelsys_officereq");
    rmitag(gcs,"list")
    Processed objects: 16, total links: 16, found 3 unique tags:
                    test: 2
             requirement: 6
                  design: 7
    

    Input Arguments

    collapse all

    Name or handle to Simulink model that the links are associated with, specified as a string scalar or character vector that contains the name of the model or a model handle.

    Keyword, specified as a string scalar or character vector.

    External requirements document name, specified as a string scalar or character vector.

    New keyword, specified as a string scalar or character vector.

    Version History

    Introduced in R2010a