How to import requirements from tables in Word

2 visualizaciones (últimos 30 días)
Paul Cuerrier
Paul Cuerrier el 23 de Nov. de 2020
Respondida: Artem el 26 de Nov. de 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?

Respuesta aceptada

Artem
Artem el 26 de Nov. de 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

Más respuestas (0)

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by