slreq.import
R2026bImport requirements from external documents
Syntax
Description
Requirement Files
[
imports requirements from the currently open document in the third-party tool
specified by refCount,filePath,reqSetObj] = slreq.import(docInterfaceName)docInterfaceName.
[
imports requirements using options specified by one or more name-value arguments
in addition to the input arguments in previous syntaxes.refCount,filePath,reqSetObj] = slreq.import(___,Name=Value)
IBM DOORS Next
[
imports requirements from the IBM®
DOORS® Next module specified by refCount,filePath,reqSetObj] = slreq.import("dng",Module=moduleName)moduleName.
Note
Before importing from IBM
DOORS Next, configure the session before importing by using
slreq.dngConfigure.
[
imports requirements from the IBM
DOORS Next project that match the query specified by
refCount,filePath,reqSetObj] = slreq.import("dng",Query=queryString)queryString.
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.
If
slreq.importreturns an error when you import a ReqIF file, check that the file meets the ReqIF specification by using theslreq.validateReqIFfunction. Use a third-party requirements management tool to fix the warnings and errors, create a new ReqIF file, then import the file again.