Documentation Center

  • Trials
  • Product Updates

rmitag

Manage user tags for requirements links

Syntax

rmitag(model, 'list')
rmitag(model, 'add', tag)
rmitag(model, 'add', tag, doc_pattern)
rmitag(model, 'delete', tag)
rmitag(model, 'delete', tag, doc_pattern)
rmitag(model, 'replace', tag, new_tag)
rmitag(model, 'replace', tag, new_tag, doc_pattern)
rmitag(model, 'clear', tag)
rmitag(model, 'clear', tag, doc_pattern)

Description

rmitag(model, 'list') lists all user tags in model.

rmitag(model, 'add', tag) adds a string tag as a user tag for all requirements links in model.

rmitag(model, 'add', tag, doc_pattern) adds tag as a user tag for all links in model, where the full or partial document name matches the regular expression doc_pattern.

rmitag(model, 'delete', tag) removes the user tag, tag from all requirements links in model.

rmitag(model, 'delete', tag, doc_pattern) removes the user tag, tag, from all requirements links in model, where the full or partial document name matches doc_pattern.

rmitag(model, 'replace', tag, new_tag) replaces tag with new_tag for all requirements links in model.

rmitag(model, 'replace', tag, new_tag, doc_pattern) replaces tag with new_tag for links in model, where the full or partial document name matches the regular expression doc_pattern.

rmitag(model, 'clear', tag) deletes all requirements links that have the user tag, tag.

rmitag(model, 'clear', tag, doc_pattern) deletes all requirements links that have the user tag, tag, and link to the full or partial document name specified in doc_pattern.

Input Arguments

model

Name of or handle to Simulink® or Stateflow® model with which requirements are associated.

tag

String specifying user tag for requirements links.

doc_pattern

Regular expression to match in the linked requirements document name. Not case sensitive.

new_tag

String that indicates the name of a user tag for a requirements link. Use this argument when replacing an existing user tag with a new user tag.

Examples

Open the slvnvdemo_fuelsys_officereq example model, and add the user tag tmptag to all objects with requirements links:

open_system('slvnvdemo_fuelsys_officereq');
rmitag(gcs, 'add', 'tmptag');
 

Remove the user tag test from all requirements links:

open_system('slvnvdemo_fuelsys_officereq');
rmitag(gcs, 'delete', 'test');
 

Delete all requirements links that have the user tag design:

open_system('slvnvdemo_fuelsys_officereq');
rmitag(gcs, 'clear', 'design');
 

Change all instances of the user tag tmptag to safety requirement, where the document filename extension is .docx:

open_system('slvnvdemo_fuelsys_officereq');
rmitag(gcs, 'replace', 'tmptag', ...
       'safety requirements', '\.docx');

See Also

|

Was this topic helpful?