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: Creating links after parsing a traceability matrix on file
Topic Summary:
Created On: 30-Apr-2007 16:57
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.
 30-Apr-2007 16:57
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

I am an absolute beginner on this forum and I don't know much about DXL... What I am trying to do is to create (more or less automatically ) links between objects contained in different formal modules. In my system there are already two formal modules (each of them contain requirements objects) and an empty link module containing the allowed linksets between the two formal modules. Each requirement/object is uniquely identified by an attribute (Requirement ID). A text file contains a list of pairings representing the start Requirement ID and the destination Requirement ID. What I need is a dxl procedure which can parse the text file a create the corresponding links. Before creating my own code from scratch I would like to ask if anyone of you has a fragment of code I could start working on. I hope my post is not too muddled Thanks Andrea
Report this to a Moderator Report this to a Moderator
 30-Apr-2007 19:23
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Without knowing the formats of your text files, an exact response is hard to give, but here is a start without using any DXL:

- if the text file containing the ID's from two modules is in comma or tabulator separated format, you can import (Import / Spreadsheet) that to to one of the modules and use one of the columns in the text file as a unique identifier
- the import will create a new attribute of the second column in the text file, which will now contain the ID's for the second module
- if the ID's have a prefix (e.g. XXX100), you should delete the prefixes for the attribute by using the Edit / Replace
- now you should have in one module an attribute which contains the Absolute Numbers of another module and in this kind of situation you can use the DOORS Link by attribute tool (which is found in Link menu), for more info on this search the DOORS help for Link by attribute

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 4-May-2007 18:07
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

Thanks a lot Pekka. I will try to do what you suggested. Andrea
Report this to a Moderator Report this to a Moderator
 7-Jun-2007 15:51
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

You can find attached the DXL code I produced for the purpuse I described above. I modified a sample program for making links and I added to it the Mini Explorer. My ability in programming DXL is probably crude and inefficient but this little "toy" works. The content of the CSV file could be soemthing like this: PDGS-1818, GS_ODP_237 PDGS-1819, GS_ODP_239 PDGS-1855, GS_USM_282 PDGS-1874, GS_ARCH_621 ................, ....................


Report this to a Moderator Report this to a Moderator
 7-Jun-2007 15:57
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

I am wondering why everytime I post a message every "new line/new paragraph" I type is lost...
Report this to a Moderator Report this to a Moderator
 7-Jun-2007 16:31
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I thought it was something to do with quick reply, but I just tested this and that was no the case :-(

-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 7-Jun-2007 at 16:33 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 10-Jul-2007 11:09
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

quote:

Originally posted by: Andrea Varriale
I am wondering why everytime I post a message every "new line/new paragraph" I type is lost...


Mystery solved...
When I use Mozilla Firefox my posts, here, are one one line, since "new lines" are lost.
When I use Internet Explorer the message is displayed properly.

Andrea
Report this to a Moderator Report this to a Moderator
 10-Jul-2007 14:02
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Just so you know, DOORS comes with tools like this. The LinkByKey.dxl or LinkByPair.dxl files would have done this.

They're found in C:\Program Files\Telelogic\DOORS_8.1\lib\dxl\example.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 10-Jul-2007 15:44
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

Thanks David!

I will have a look to those tools too.
The reason why I made my small DXL program is that I needed a way to link DOORS objects, belonging to different modules, according to information stored on a file (for instance a CSV file) and I was not able to find this functionality already available. Or maybe I didn't check carefully...

Andrea
Report this to a Moderator Report this to a Moderator
 10-Jul-2007 15:47
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

No what you wrote is different from those, they're just similiar. I've looked at your code and for someone who claims to be a newbie at DXL, its pretty impressive. I've been doing almost nothing but DXL for the past 7 months and even I haven't messed with tree views yet. Just haven't had the need to use them.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 10-Jul-2007 18:50
User is offline View Users Profile Print this message


Andrea Varriale

Posts: 17
Joined: 22-Mar-2007

quote:

Originally posted by: David Pechacek
No what you wrote is different from those, they're just similiar. I've looked at your code and for someone who claims to be a newbie at DXL, its pretty impressive. I've been doing almost nothing but DXL for the past 7 months and even I haven't messed with tree views yet. Just haven't had the need to use them.


Thanks for your compliments but I didn't do anything extraordinary. 
I simply started from "linkbypairs.dxl" (Yes! Exactly the one you mentioned! I almost forgot it was that one), I modified it a bit and I added to it the Mini Explorer.
Most of the code was written by someone else. 
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.