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: Merging Modules and Linksets
Topic Summary: Need to Merge Modules and Corresponding Linksets
Created On: 15-Dec-2005 03:01
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.
 15-Dec-2005 03:01
User is offline View Users Profile Print this message


Frank Poljanec

Posts: 7
Joined: 24-Mar-2005

Hi,

Does anyone have a solution to the following situation?

In Directory A, I created linkset A that stores links from Module A to Module B.

In Directory B, I created linkset B that stores links from Module C to Module D.
 
How can I do all of the following?

a. Merge Module A with Module C
b. Merge Module B with Module D
c. Merge Linkset A with Linkset B

In essence, I need to merge the modules and the linksets so that all the links from before the merge are retained in the newly merged modules.

If anyone has a solution, please email at frank_poljanec@phac-aspc.gc.ca or call at (613) 948-2832.

Thanks,

Frank Poljanec
Report this to a Moderator Report this to a Moderator
 15-Dec-2005 09:53
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

When you "merge" two modules, you cannot preserve the absolute numbers of all the objects.
So, absolute numbers can't be used alone. This also means that trying to preserve history is a little pointless.

My approach, which creates new modules and leaves the originals, is as follows:

1. Store the unique id of each target object.
create a new string attribute in the target modules, B and D. I called mine "ReqID".
Ensure that the modules have a prefix set and that they are different. Set the ReqID attribute to contain the identifier of the object. Save.

2. Save the existing links in an attribute in the source modules, A and C. I used the name "LegacyLinks".
Run modified savelinks tool to save the links as attributes (this uses ReqID rather than absolute number).
Save

3. Create new modules. I called mine MergedAandC and MergedBandD.

4. Create new link module. I called mine MergedLinks.

5. Use the copy objects function to copy all objects from A to MergedAandC, remembering to select ALL the attributes. Repeat for C.
Do the same to copy objects from B and D to MergedBandD.
Save all modules

6. Recreate the links from attribute.
From module MergedAandC, run the modified "Create Link by Attribute" tool (this uses ReqID rather than absolute number), slecting MergedLinks as the link module.

Job done!

The only changes I have made to the attached scripts are to use a string attribute called UNIQUE_ATTR instead of "Absolute Number", and to change the vraiable typr from int to string where necessary.




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

Edited: 16-Dec-2005 at 09:02 by Tony Goodman
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.