slreq.import
Import requirements from external documents
Syntax
Description
slreq.import( imports
requirements from the external document located at docPath)docPath and
saves them as referenced requirements in a new requirement set with the same name as
the external document. Use this function to import requirements from Microsoft® Office documents and from files in the Requirements Interchange
Format.
[
imports requirements as referenced requirements from the external document and
returns the number of generated reference requirements
refCount, reqSetFilePath, reqSetObj] = slreq.import(docPath)refCount, the path of the requirements set that contains the
referenced requirements, reqSetFilePath, and the name of the
referenced requirements object, reqSetObj.
slreq.import( imports
requirements as referenced requirements from an external document that is of the
registered document type docType)docType. The function saves the
imported requirements in a new requirement set with the same name as the external
document.
slreq.import(___,
specifies options using one or more name-value arguments in addition to the input
arguments in previous syntaxes.Name=Value)
slreq.import("clearcache") cleans up the temporary HTML files
that are created when importing rich text requirements.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Limitations
MATLAB® Online™ does not support importing requirements from Microsoft Word, Microsoft Excel, or IBM® DOORS documents.
Tips
You can use callbacks to execute code when you import or update requirements. For more information, see Use Callbacks to Customize Requirement Import Behavior.