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: How to delete linkset and LMD?
Topic Summary:
Created On: 22-Aug-2003 00:30
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.
 22-Aug-2003 00:30
User is offline View Users Profile Print this message


David Evans

Posts: 1
Joined: 5-Nov-2002

How can I delete a linkset and link module descriptor representing traceability between two formal modules?

I am creating the relationship with the following DXL code:

void createLinkSet(string linkModule, src, trg) {
Folder f = current
Module l = edit(linkModule, false)
Linkset ls = create (l, src, trg)
string s = addLinkModuleDescriptor(f, src, trg, false, linkModule, "")
save (l)
close (l, false)
}

Is there a way to reverse this operation and delete all links?

Thanks,
David

-------------------------
David Evans
Senior Analyst/Developer
Human Genome Sciences, Inc.
Report this to a Moderator Report this to a Moderator
 19-Sep-2003 20:53
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

A "LinkSet" is an actual thing. A "LinkModule Descriptor" (aka "Default Link Module" or "LinkSet Pairing) is just a pointer.

These are two completely separate beasts: [1] deleting linksets and [2] deleting LMDs (LSP LinkSet Pair.

[1] You can open the Link Module, loop through all its "objects" (its Linksets), convert it to a linkset (via "linkset(obj)"), scan for the source/target modules, and then delete the linkset when you find the one you want.

[2] Loop through the folder looking for LMDs 'for LMD in fold do". Find the source/target modules; delete the LMD (and then break) when you find the one you want. As a clean-up issue, if you find an LMD with null source/target/linkmod names you might as well delete when you find it.

- Louie
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.