slreq.import
Import requirements from external documents
Syntax
Description
slreq.import(
imports
requirements content as referenced requirements from an external document located at
docPath
)docPath
. The imported requirements are saved in a new
requirement set with the same name as the external document. Use this import method
to import requirements content from Microsoft® Office documents and from files in the Requirements Interchange Format
(.reqif
and .reqifz
).
[
imports requirements content as referenced requirements from an external document
located at refCount
, reqSetFilePath
, reqSetObj
] = slreq.import(docPath
)docPath
and returns the number of references
imported refCount
. The imported requirements are saved in the
requirement set reqSetObj
located at
reqSetFilePath
with the same name as the external
document.
slreq.import(
imports
requirements content as referenced requirements from an external document that is of
a registered document type docType
)docType
. The imported requirements
are saved in a new requirement set with the same name as the external
document.
slreq.import(
imports requirements content as referenced requirements from an external document
located at docPath
,Name,Value
)docPath
with options specified by one or more
Name, Value
pair arguments.
slreq.import(
imports
requirement content from the ReqIF file reqifFile
)reqifFile
using a
pre-configured attribute mapping.
slreq.import(
imports requirement content from the ReqIF file reqifFile
, 'mappingFile', mapFilePath
)reqifFile
using
the attribute mapping specified by mapFilePath
.
slreq.import('clearcache')
cleans up temporary HTML files
that are created when importing rich text requirements.
Examples
Import Referenced Requirements
% Import referenced requirements from Microsoft Office documents slreq.import('Specification002.docx'); slreq.import('D:/Projects/Requirements/Safety321.xlsx'); % Import referenced requirements from an IBM DOORS Module slreq.import('linktype_rmi_doors');
For more information on importing referenced requirements from third-party applications, see Import Requirements from Third-Party Applications.
Input 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.