How to import requirements from tables in Word

2 Ansichten (letzte 30 Tage)
Paul Cuerrier
Paul Cuerrier am 23 Nov. 2020
Beantwortet: Artem am 26 Nov. 2020
I am trying to import the requirements from a table in Word into Simulink using Simulink Requirements and a REGEXP. However, the import separate the ID and the description of the requirements into two requirements inside Simulink.
My table looks like this:
|Reqxxx1| Requirement 1 Description
|Reqxxx2| Requirement 2 Description
Expected result from Simulink Requirements import:
index = 1, ID = Reqxxx1, Summary = Requirement 1 Description
Import result:
index =1, ID = Reqxxx1, Summary = Reqxxx1
index =2, ID = Requirement 1 Description, Summary =Requirement 1 Description
See attached files for more clarity
The regular expression used is: ^Reqx+\d
Question is: What is the configuration to set inside Simulink Requirement to have the expect result?

Akzeptierte Antwort

Artem
Artem am 26 Nov. 2020
The example document attached here has no outline headings. Therefore, our Product has no way to know which parts of the table belong to requirements identified by which other part of the table. Please consider the attached slightly modified version of the example document. All I did was make "Title 1" into Heading 1, "Title 2" into Heading 2, "Title 3" into Heading 3, all ReqxxxN into Heading 4, plus I added another Heading 3 above the lines that are not wanted as separate requirements.
Now, with outline headers present in the document, our Product can infer that "Requirement 1 Description" belongs to Reqxxx1 because the paragraph (each table cell is a paragraph) belongs under Reqxxx1 heading. Note that without outline headings, when there is no parent-child relationship between paragraphs, each paragraphs imported as separate items, but with outline headings present, the imported structure is very different, please see the attached screenshot.
Hope this helps.
Artem

Weitere Antworten (0)

Produkte


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by