Exporting a complete paragraph from Word to a unique DOORs ID

Hello everybody,

My question is :
I have a document structured like that :

1.2.2 REQ1 : boards hardware requirements

The board shall fulfil the specification ...

Design verif method :
Need a proof ...
the proof must be reviewed with customer ...

1.2.3 REQ2 : Electrical requirement
The issue is that in DOORs, there is one ID per line of the requirement

Is there a way ot import directly all the content between paragraph 1.2.2 and 1.2.3 into only one Doors ID ?

Thanks for your help
jbjacques - Wed Jun 06 04:50:01 EDT 2012

Re: Exporting a complete paragraph from Word to a unique DOORs ID
Peter_Albert - Wed Jun 06 05:43:47 EDT 2012

You could replace paragraph marks by line breaks within each requirement.

Peter

Re: Exporting a complete paragraph from Word to a unique DOORs ID
jbjacques - Wed Jun 06 07:22:39 EDT 2012

Peter_Albert - Wed Jun 06 05:43:47 EDT 2012
You could replace paragraph marks by line breaks within each requirement.

Peter

In fact the issue is does not concern paragrah but lines :

each line in the word document is put in one Doors ID.

I would like to put a whole paragraph into one ID, even if there are line breaks.

thanks for your help

Re: Exporting a complete paragraph from Word to a unique DOORs ID
Peter_Albert - Wed Jun 06 07:50:52 EDT 2012

jbjacques - Wed Jun 06 07:22:39 EDT 2012
In fact the issue is does not concern paragrah but lines :

each line in the word document is put in one Doors ID.

I would like to put a whole paragraph into one ID, even if there are line breaks.

thanks for your help

Please apologise if this is a wrong assumption, but I guess you are not familiar with the concept of and difference between "paragraph marks" and "line breaks" in Microsoft Word.

If you press <Enter> in a Word document, you create a new paragraph. The corresponding "paragraph mark" character is normally hidden, but can be made visible by pressing the "Show/Hide" button in the "Paragraph" element in the "Home" ribbon (The button which looks like a backward letter "P" (¶). BTW, the paragraph marks themselves look exactly like that.

If you press <SHIFT>+<ENTER> in a Word document, you create a "line break" (which, if hidden characters are shown, looks like a small arrow pointing downwards and left).

Now, as you correctly observed, DOORS imports paragraphs into individual Objects. As paragraphs are separated by "paragraph marks", you cannot import multiple paragraphs into one Object (you could of course combine Objects after the export using DXL, but that would be a different story).

However, paragraphs can contain multiple "line breaks". Hence my proposal: Your current Word document looks like this (I have added 'P' at the end, meaning "paragraph mark":



1.2.2 REQ1 : boards hardware requirements'P'

The board shall fulfil the specification ...'P'

Design verif method :'P'
Need a proof ...'P'
the proof must be reviewed with customer ...'P'
1.2.3 REQ2 : Electrical requirement'P'
...


If you now replace the "paragraph marks" with "line breaks" (indicated as 'L') as follows, the import will put all lines into one Object per requirement.


1.2.2 REQ1 : boards hardware requirements'L'

The board shall fulfil the specification ...'L'

Design verif method :'L'
Need a proof ...'L'
the proof must be reviewed with customer ...'P'
1.2.3 REQ2 : Electrical requirement'L'
...


Cheers,

Peter

Re: Exporting a complete paragraph from Word to a unique DOORs ID
llandale - Wed Jun 06 17:47:11 EDT 2012

Peter_Albert - Wed Jun 06 07:50:52 EDT 2012
Please apologise if this is a wrong assumption, but I guess you are not familiar with the concept of and difference between "paragraph marks" and "line breaks" in Microsoft Word.

If you press <Enter> in a Word document, you create a new paragraph. The corresponding "paragraph mark" character is normally hidden, but can be made visible by pressing the "Show/Hide" button in the "Paragraph" element in the "Home" ribbon (The button which looks like a backward letter "P" (¶). BTW, the paragraph marks themselves look exactly like that.

If you press <SHIFT>+<ENTER> in a Word document, you create a "line break" (which, if hidden characters are shown, looks like a small arrow pointing downwards and left).

Now, as you correctly observed, DOORS imports paragraphs into individual Objects. As paragraphs are separated by "paragraph marks", you cannot import multiple paragraphs into one Object (you could of course combine Objects after the export using DXL, but that would be a different story).

However, paragraphs can contain multiple "line breaks". Hence my proposal: Your current Word document looks like this (I have added 'P' at the end, meaning "paragraph mark":



1.2.2 REQ1 : boards hardware requirements'P'

The board shall fulfil the specification ...'P'

Design verif method :'P'
Need a proof ...'P'
the proof must be reviewed with customer ...'P'
1.2.3 REQ2 : Electrical requirement'P'
...


If you now replace the "paragraph marks" with "line breaks" (indicated as 'L') as follows, the import will put all lines into one Object per requirement.


1.2.2 REQ1 : boards hardware requirements'L'

The board shall fulfil the specification ...'L'

Design verif method :'L'
Need a proof ...'L'
the proof must be reviewed with customer ...'P'
1.2.3 REQ2 : Electrical requirement'L'
...


Cheers,

Peter

In word, you can replace "^p" with "^l", and manually plow through either "replacing" a character or "find next".

DOORS has no line-breaks, these are turned back into EOL characters after import.

-Louie

Re: Exporting a complete paragraph from Word to a unique DOORs ID
jbjacques - Thu Jun 07 03:28:17 EDT 2012

llandale - Wed Jun 06 17:47:11 EDT 2012
In word, you can replace "^p" with "^l", and manually plow through either "replacing" a character or "find next".

DOORS has no line-breaks, these are turned back into EOL characters after import.

-Louie

Thanks for your help !

I just have to find a way to automatize that now :)

Re: Exporting a complete paragraph from Word to a unique DOORs ID
llandale - Thu Jun 07 13:50:56 EDT 2012

jbjacques - Thu Jun 07 03:28:17 EDT 2012
Thanks for your help !

I just have to find a way to automatize that now :)

Did you say you want to write a huge set of Word macros that can see all the odd Word stuff and fix it for import? If you do that well you will get the double gold star.

-Louie

Re: Exporting a complete paragraph from Word to a unique DOORs ID
jbjacques - Fri Jun 08 10:53:44 EDT 2012

llandale - Thu Jun 07 13:50:56 EDT 2012
Did you say you want to write a huge set of Word macros that can see all the odd Word stuff and fix it for import? If you do that well you will get the double gold star.

-Louie

In fact I created a simple Macro in word.

this macro replaces ^p by ^l for all line except for titles

Like that in Doors all the line between 2 titles have the same ID