Quantcast

Documentation Center

  • Trial Software
  • Product Updates

rmiref.insertRefs

Insert links to models into requirements documents

Syntax

[total_links, total_matches, total_inserted] = rmiref.insertRefs(model_name, doc_type)

Description

[total_links, total_matches, total_inserted] = rmiref.insertRefs(model_name, doc_type) inserts ActiveX® controls into the open, active requirements document of type doc_type. These controls correspond to links from model_name to the document. With these controls, you can navigate from the requirements document to the model.

Input Arguments

model_name

Name or handle of a Simulink® model

doc_type

A string that indicates the requirements document type:

  • 'word'

  • 'excel'

Examples

Remove the links in an example requirements document, and then reinsert them:

  1. Open the example model:

    slvnvdemo_fuelsys_officereqslvnvdemo_fuelsys_officereq
  2. Open the example requirements document:

    open([matlabroot strcat('/toolbox/slvnv/rmidemos/fuelsys_req_docs/',...
    	'slvnvdemo_FuelSys_DesignDescription.docx')])
    
  3. Remove the links from the requirements document:

    rmiref.removeRefs('word')
  4. Enter y to confirm the removal.

  5. Reinsert the links from the requirements document to the model:

    [total_links, total_matches, total_inserted] = ...
    	rmiref.insertRefs(gcs, 'word')

See Also

Was this topic helpful?