Best way to mass edit (delete) links?

Hello,
I'm a new requirements engineer and am currently editing a spec that has a ton requirements with links we no longer want. I've been told that the only way to do it right is to go through links -> edit links -> and then highlight and delete the links for each requirement that I want to delete.

I asked about using the links -> delete links and was told that we don't use that function because we're not 100% sure how it affects things.

So, if I have to delete all of a requirement's links before deleting the requirement, what is the best way to do this for more than one requirement at a time?

Thanks!
SystemAdmin - Mon Mar 02 13:40:13 EST 2009

Re: Best way to mass edit (delete) links?
Ron_Lewis - Mon Mar 02 14:46:33 EST 2009

You can delete either the link module or link sets with the link module if there are no links you want to keep within the link module or link set.

Re: Best way to mass edit (delete) links?
kbmurphy - Mon Mar 02 14:57:32 EST 2009

Create a filter for the requirements you wish to have the links deleted.

With those requirements displayed, choose Links>delete links.

Be mindful of your options. You want to have the target module opened and choose "display set to display set". Go ahead and do it and check the results. As long as you do not save your module you can try again.

Ron's method details deleting all links--which from reading your question I'm not sure that is what you were looking to do.

Re: Best way to mass edit (delete) links?
llandale - Mon Mar 02 16:21:03 EST 2009

You can save the below DXL in some "ShowSeletion.dxl" file in your 'user' folder, perhaps here:

C:\Program Files\Telelogic\DOORS_8.1\lib\dxl\addins\user

Select the object or objects you want to delete, run the DXL, and when you are sure the displayed objects are the ones you want to have links delete, then run the Links menu >>Delete All Links

That deletes the links from this object, and it opens up other modules Edit if they source links to this object, and delete the links as well. Those other modules are open Edit invisibly, but are NOT saved. After deleting the links (and presumably then manually deleting the objects), you should exit DOORS and then Confirm for every module it asks to save.

>Louie

// Show Current Object or Selection only
/*
Show the current object or selection, hiding all other objects
*/
Object obj
for obj in (current Module) do
{ if (obj == current Object) accept obj
elseif (isSelected(obj)) accept obj
else reject(obj)
}
filtering on
// end Show Current Objet or Selection only