![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 } |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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.
|
|
![]() |
Telelogic DOORS
» General Discussion
»
Word Export - Style mapping
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.