Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Paragraph styles - how to use?
Topic Summary: paragraph styles not covered by DOORS help
Created On: 20-Dec-2006 13:41
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 20-Dec-2006 13:41
User is offline View Users Profile Print this message


Jim Backus

Posts: 21
Joined: 27-Apr-2006

I have a specification in DOORS 7 that has had many objects added directly into DOORS and has been restructured a fair bit. When exporting to Word, the Word paragraph numbers are wrong.

For example in DOORS a heading object '4.2.2.5 Fault Detection' exists, but when exported to Word this becomes '4.3 Fault Detection'.

When I look at the 'Paragraph Style' attribute the value is <InvalidTag Heading:Heading 2> which appears to explain why Word sees this as a level 2 heading.

The other aspect is that all of the new objects entered directly into DOORS have no value for 'Paragraph Style'. The effect in an exported Word document is that some paragraphs (text objects) have Word style 'Normal' and others 'Body Text'. As Word experts advise against using the 'Normal' style, the use of Body Text is clearly preferable.

My questions:

Is Paragraph Style only assigned a value on import from Word?

Does DOORS not adjust the Paragraph Style value when objects are moved?

Having discovered this 'feature' (bug?) it would be useful to be able to correct this using DXL. For example automatically setting the Paragraph Style value appropriately for the Object Level if the object is a heading and to <InvalidTag Text:Body Text> if the object is text. As a complete DXL novice but with some programming experience how is the object type determined? What are the dangers of doing this using a script?

TIA for any advice, comments or DXL fragments.

Jim

-------------------------
Jim Backus<BR>Ultra Electronics, Controls
Report this to a Moderator Report this to a Moderator
 21-Dec-2006 09:09
User is offline View Users Profile Print this message


Robert Swan

Posts: 86
Joined: 14-Apr-2005

By default Object Headings are exported with the Word heading level that matches their Object Level. Exported Object Text and other attributes default to 'Normal' unless Paragraph Style is set to a style that exists in the export document. (Provides a quick way of spotting uncontrolled paragraphs) DOORS does not automatically adjust any styles except for Object Headings level (as above) The styles name can be imported when importing text. The disadvantage is that if someone has customised the style on that paragraph you lose the change on export. So unless you have carefully controlled styles in your source documents, (and many aren't) then I find its better to not import them. Whether imported or not you can run a dxl script to set all object text paragraph styles to single defined style (say 'Body Text). Example, (if it doesn't get scrambled) below. You can define different styles for different attributes of an object, but that's 'left as an exercise for the reader'. // set visible objects paragraphstyle to 'Main Paragraph' Assumptions 1) User has filtered display to only show the required objects. 2) User only wants one entry in paragraph style attribute. */ //--------------declarations---------- Module m = current Object o = current string s = "" for o in all m do { s = "" o."Paragraph Style" = s } //end for all o in m
Report this to a Moderator Report this to a Moderator
 21-Dec-2006 15:56
User is offline View Users Profile Print this message


michael Barnes

Posts: 85
Joined: 12-Nov-2003

If you want to use DOORS default formatting, then select not to use paragraph styles when generating a Word document.
Report this to a Moderator Report this to a Moderator
 2-Jan-2007 13:36
User is offline View Users Profile Print this message


Jim Backus

Posts: 21
Joined: 27-Apr-2006

Michael,

What formatting is applied in Word when using DOORS default formatting?

-------------------------
Jim Backus<BR>Ultra Electronics, Controls
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.