Import requirements from external documents
slreq.import(
imports
requirements content as referenced requirements from an external document located at
docPath
)docPath
. The imported requirements are saved in a new
requirements 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
requirements 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 requirements 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.
% Import referenced requirements from Microsoft Office documents slreq.import('Specification002.docx'); slreq.import('D:/Projects/Requirements/Safety321.xlsx'); % Import referenced requirements from an IBM Rational 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.