rmitag
Manage user keywords for requirements links
Syntax
rmitag(model, 'list')
rmitag(model, 'add', keyword)
rmitag(model, 'add', keyword, doc_pattern)
rmitag(model, 'delete', keyword)
rmitag(model, 'delete', keyword, doc_pattern)
rmitag(model, 'replace', keyword, new_keyword)
rmitag(model, 'replace', keyword, new_keyword, doc_pattern)
rmitag(model, 'clear', keyword)
rmitag(model, 'clear', keyword, doc_pattern)
Description
rmitag(
lists
all user keywords in
model
, 'list')model
.
rmitag(
adds model
, 'add', keyword
)keyword
as a user keyword for
all requirements links in
model
.
rmitag(
adds model
, 'add', keyword
, doc_pattern
)keyword
as a user keyword for
all links in model
,
where the full or partial document name matches the regular expression
doc_pattern
.
rmitag(
removes the user keyword, model
, 'delete', keyword
)keyword
from
all requirements links in
model
.
rmitag(
removes the user keyword, model
, 'delete', keyword
, doc_pattern
)keyword
, from
all requirements links in
model
, where the full or partial document name
matches doc_pattern
.
rmitag(
replaces model
, 'replace', keyword
, new_keyword
)keyword
with new_keyword
for
all requirements links in
model
.
rmitag(
replaces model
, 'replace', keyword
, new_keyword
, doc_pattern
)keyword
with new_keyword
for
links in model
, where the full or partial document name
matches the regular expression doc_pattern
.
rmitag(
deletes all requirements links that have
the user keyword, model
, 'clear', keyword
)keyword
.
rmitag(
deletes all requirements links that have
the user keyword, model
, 'clear', keyword
, doc_pattern
)keyword
, and link to the full or partial
document name specified in doc_pattern
.
Input Arguments
|
Name of or handle to Simulink® or Stateflow® model with which requirements are associated. |
|
Character vector specifying user keyword for requirements links. |
|
Regular expression to match in the linked requirements document name. Not case sensitive. |
|
Character vector that indicates the name of a user keyword for a requirements link. Use this argument when replacing an existing user keyword with a new user keyword. |
Examples
Open the slvnvdemo_fuelsys_officereq
example model,
and add the user keyword tmptag
to
all objects with requirements
links:
open_system('slvnvdemo_fuelsys_officereq'); rmitag(gcs, 'add', 'tmptag');
Remove the user keyword test
from
all requirements links:
open_system('slvnvdemo_fuelsys_officereq'); rmitag(gcs, 'delete', 'test');
Delete all requirements links that
have the user keyword design
:
open_system('slvnvdemo_fuelsys_officereq'); rmitag(gcs, 'clear', 'design');
Change all instances of the user
keyword tmptag
to
safety
requirement
, where the document file name extension is
.docx
:
open_system('slvnvdemo_fuelsys_officereq'); rmitag(gcs, 'replace', 'tmptag', ... 'safety requirements', '\.docx');