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: Word Export - Style mapping
Topic Summary: Doors incorrectly maps <Object Text:Body Text 2> to Body Text Indent rather than Body Text 2
Created On: 10-Feb-2005 14:33
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.
 10-Feb-2005 14:33
User is offline View Users Profile Print this message


Salim Talamas

Posts: 2
Joined: 9-Feb-2005

I carefully set up each Object (Heading and text) to have a Paragraph Style attribute that reflects it's Object Level.  For instance, text under a heading at level 2 has a Paragraph Style attribute of

<Object Text:Body Text 2>

I assume that this information is used in mapping to Word styles when exporting.
When exporting to Word, I created a map file that indicates, for instance, that Level 2 Object Text is mapped to Word style "Body Text 2" and so on.

However, when I export, Text with the style above maps to Body Indent Text, not Body Text 2.  For all other text levels (Body Text 1, 3, 4 and all Heading Objects), the mapping works correctly!
 
What am I doing wrong?

I have an additional related question:
Is there a way to set the Paragraph Style attribute based on the object level by default?  I tried using DXL, but it is none too intuitive.  Everytime I create a text object I have to manually edit the paragraph style attribute.
Report this to a Moderator Report this to a Moderator
 11-Feb-2005 18:42
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

If the styles defined in Paragraph Style match exactly the styles defined in the *.dot file you specify when exporting to MS-Word, you shouldn't need a Map. Some random things to try:

[] Get rid of the mapping.
[] Did you name the style exactly "Body Text 2", or perhaps "Body Text 2 " or "Body Test 2"?
[] Is style Body Text 2 based on or identical to style Body Indent Text, or visa versa? Type modifying the style so its not "based on" anything.

DXL to set the style should be easy, but keep in mind I don't know what the paragraph style is supposed to look like if the object has both Heading and Text:

for obj in entire mod do
{ Level = level(obj) ""
if (!null (obj."Object Heading")) Style = "<Object Heading:Heading " Level ">"
elseif (!null (richText(obj."Object Text"))) Style = "<Object Text:Body Text " Level ">"
else Style = ""
obj."Paragraph Style" = Style
}

- Louie
Report this to a Moderator Report this to a Moderator
 11-Feb-2005 22:37
User is offline View Users Profile Print this message


Salim Talamas

Posts: 2
Joined: 9-Feb-2005

The DXL script is great, but I had to edit it to work:

Object obj

for obj in all current Module do

{ Level = level(obj) ""

string hdg = obj."Object Heading"

string txt = obj."Object Text"

if (length(txt) > 1) then

Style = "<Object Text:Body Text " Level ">"

elseif ((length(hdg)) > 1) then

Style = "<Object Heading:Heading " Level ">"

else Style = ""

obj."Paragraph Style" = Style

}

As for the mapping to Word styles, none of the suggestions panned out.  If I ever figure out the problem, I will share it.

Report this to a Moderator Report this to a Moderator
 27-Jun-2005 22:03
User is offline View Users Profile Print this message


Baher Mohamed

Posts: 63
Joined: 21-Jun-2005

I read this post while looking up something else and it brought up a question i had before.  I created a template with a style named "Requirement".  I have a layout dxl column that i want to assign that type to and havent found how to do it.

Edited: 27-Jun-2005 at 22:04 by Baher Mohamed
Report this to a Moderator Report this to a Moderator
 27-Jun-2005 22:05
User is offline View Users Profile Print this message


Baher Mohamed

Posts: 63
Joined: 21-Jun-2005

I read this post while looking up something else and it brought up a question i had before.  I created a template with a style named "Requirement".  I have a layout dxl column that i want to assign that type to and havent found how to do it.
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.