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: Export SRS to word help
Topic Summary:
Created On: 19-Jun-2008 22:00
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.
 19-Jun-2008 22:00
User is offline View Users Profile Print this message


Andrew Jump

Posts: 2
Joined: 19-Jun-2008

I am trying to export a SRS to WORD with some basic formatting. But I know nothing of DXL or am I well versed enough in coding to figure it out.

What I would like to do is when I export is have my ID placed directly in front of the requirement it belongs to. I also would like the ID surrounded by <ID>.

Also is there a way to pick and choose with IDs it will print. I have a T/F attribute and I would like it to not print the IDs for attributes with the "F"

Any guidance is greatly appreciated.

Andrew
Report this to a Moderator Report this to a Moderator
 20-Jun-2008 10:47
User is offline View Users Profile Print this message


Eric Piallat

Posts: 13
Joined: 10-Dec-2007

First of all, how do you export to Word?
The native "W" button, or some "WEXP" menu?

Both tools export by default what is displayed, so the best way to choose which ID is exported is to create a DXL Layout column, displaying only "F" identifiers.
Something like this:

string s = probeAttr_(obj, "name of T/F Attribute")
if (s=="F") display identifier obj

where you have to put the actual name of your attribute between the first set of quotes.

Adding surrounded "<ID>" is performed like this:

string s = probeAttr_(obj, "name of T/F Attribute")
if (s=="F") display "<ID>" (identifier obj) "<ID>"

To display ID on the same line as requirement statement, I'm afraid there is no simple DXL trick.

You could always display ID and Object Text in the same column, but then you would lose the "Paragraph Style" attribute information.

If you're using WEXP, there is an advanced option, called "Join text on the left of main column", that does the trick.

If not, I advise you to perform some search & replace within word after export.

Something like:
search for: <ID>^p
replace by: <ID>^t

to replace paragraph marks after "<ID>" tags by tabulations.
Report this to a Moderator Report this to a Moderator
 20-Jun-2008 10:57
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

I would recommend to consider working with either DocExpress or WEXP, both being additional tools for the customized export to MS Word. Both require significant effort for getting started with, DocExpress in addition requires additional money for the appropriate licenses. There is some information on WEXP available in this forum, and your local Telelogic sales person would be more than happy to sell you a copy of DocExpress. Those tools would e.g. look after the brackets around your ID. As for printing only a subset of requirements, this would be achieved by a filter applied in the module window, which is respected by the exporter.

A poor man's solution to your problem would be a view with only one layoutDXL column, where you create the <ID> and Object Text. You could export this view to Word using the built-in exporter. But then you need an additonal Word macro to remove the ":" before each line. And you have to look after the Headings yourself. And I am sure another dozen problems will pop up during the process.

Regards,

Peter
Report this to a Moderator Report this to a Moderator
 20-Jun-2008 12:00
User is offline View Users Profile Print this message


Simon Haydn

Posts: 22
Joined: 14-Sep-2007

I would just use a filter to select the requirements with "T" and use Eric's Layout DXL to add your <ID> bits. Swap the columns around and then export it to a plain text file (using Table layout and setting the Line Width to something greater than your largest requirement).

This way you can then paste the results from Notepad, as it won't be contained within a table and paste it into Word. If it puts too big a gap between your <ID> and requirement, you can use Crimson Editor or UltraEdit to delete the extra spaces by using Column Mode. Simon.

-------------------------
Simon Haydn BSc (Hons)

Requirements Controller
Marshall Aerospace (UK)
Report this to a Moderator Report this to a Moderator
 20-Jun-2008 17:02
User is offline View Users Profile Print this message


Andrew Jump

Posts: 2
Joined: 19-Jun-2008

I normally export through the menus if that make a difference. File>Export>MS Office>Word.
Report this to a Moderator Report this to a Moderator
 23-Jun-2008 09:41
User is offline View Users Profile Print this message


Simon Haydn

Posts: 22
Joined: 14-Sep-2007

Ok,
you will still need to use a filter to select the requirements you want and Eric's Layout DXL to add your <ID> bits. Then use your usual way of exporting and make sure it uses Table layout, instead of the default Book one. You can either move the columns in DOORS or Word once it's exported. Simon.

-------------------------
Simon Haydn BSc (Hons)

Requirements Controller
Marshall Aerospace (UK)
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.