![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Delete all links to specific module Topic Summary: Created On: 26-Jun-2007 23:22 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I needed to get rid of all the links to a certain module, so I wrote a quick script. Didn't save it, and then thought, "Hey, that might be useful later." Sure enough, I found myself needing it again in a few minutes.
Hence, I figured I might as well rewrite it "right" and share. Enjoy! -Chris |
|
![]() |
|
![]() |
|
This seems to delete all the links FROM the current module to an ambguously defined target module.
Well 'all' may be a stretch, you need to change the 'for o in m do' loop to 'for o in entire m do' loop; otherwise you only get links from displayed objects. Your initial loop will find a target if that target is the last out linked partner of the current object. Doesn't seem to useful to me. If you really need to do it that way, then add a 'confirm' dialog to that first loop: targ_name = "" for lk in o -> "*" do { targ_name = fullName(target(lk)) if (confirm("Delete links to '" targ_name "'")) break targ_name = "" } if (null targ_name) {infoBox("No target selected"); halt} It may not matter, but you should 'flushDeletions' afterwards. - Louie |
|
![]() |
|
![]() |
|
Err, right, links from current to something else. Guess I could have been more clear on that
![]() The first loop was mostly to save me the effort of finding and then typing out the whole path of the module which I wanted to delete links to. I think it took me longer to type up the post than it would have to find that, of course. Thanks for the feedback! |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Delete all links to specific module
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.