Change link "direction" using DXL

Hi All,

I'm a DOORs newbie, and am trying to resolve an issue I created all by myself. :) I added links to a module I created, however, in my infinite wisdom, I created them in the wrong direction. I am looking for a way (preferably DXL if possible) to change the direction of the links (without having to go to each object and manually change it). I've researched this, but am not able to resolve. I think perhaps I am using incorrect terminology for searching. If anyone can point me to any documentation on how to do this, or has a script, I would greatly appreciate it!

Thanks!
JulieJules - Thu Jun 02 10:56:51 EDT 2011

Re: Change link "direction" using DXL
JulieJules - Thu Jun 02 11:04:24 EDT 2011

After more searching of the forum - I found this thread - I'll see if I can make this work for me:

https://www.ibm.com/developerworks/forums/thread.jspa?threadID=335195

Re: Change link "direction" using DXL
smo927 - Wed Sep 07 13:35:12 EDT 2011

JulieJules - Thu Jun 02 11:04:24 EDT 2011
After more searching of the forum - I found this thread - I'll see if I can make this work for me:

https://www.ibm.com/developerworks/forums/thread.jspa?threadID=335195

Hey,

I have the same need as you. Do you succeed in solving the changing links direction issue ?

If yes, It would be kind to tell me how to do that.

Thanks !
Regards.

Re: Change link "direction" using DXL
llandale - Wed Sep 07 14:47:06 EDT 2011

smo927 - Wed Sep 07 13:35:12 EDT 2011
Hey,

I have the same need as you. Do you succeed in solving the changing links direction issue ?

If yes, It would be kind to tell me how to do that.

Thanks !
Regards.

Didn't look at the thread, but I know there is no such "change direction" command and any solution will involve finding the link, creating a new one in the other direction, and deleting the old one. That will required edit access to both modules.

  • Louie

Re: Change link "direction" using DXL
jhaury - Mon Sep 26 20:00:48 EDT 2011

Hi Julie,

We've had problems in some of our DOORS DB's as well with needing links to be "backwards" or even "bidirectional". Something that's helped us tons with link management has been a tool we found called SnapDOORS (www.snapdoors.com). With it, you regenerate/update all links in your project at one time, and it lets you set up link directinoality. We find this useful for "cross domain" links. On a regular basis we sync an unclassified Project into a classified environment and then regenerate links. To pull this off, we have to have all Link Attributes for "cross domain" (between a classified and unclassified Module) link reside in the Classified module, regardless if it's the source or target Module.

Hope this helps!
Jason

Re: Change link "direction" using DXL
llandale - Tue Sep 27 12:46:55 EDT 2011

llandale - Wed Sep 07 14:47:06 EDT 2011
Didn't look at the thread, but I know there is no such "change direction" command and any solution will involve finding the link, creating a new one in the other direction, and deleting the old one. That will required edit access to both modules.

  • Louie

I did try to swap the Source and Target module names in the linkset, changing the attribute 'Source' and 'Target' in the link module for the object representing the LinkSet, but I get error -R-W- DXL: <Line:10> no access to modify attribute 'Source'

Re: Change link "direction" using DXL
rmoskwa - Wed Sep 28 15:55:03 EDT 2011

JulieJules - Thu Jun 02 11:04:24 EDT 2011
After more searching of the forum - I found this thread - I'll see if I can make this work for me:

https://www.ibm.com/developerworks/forums/thread.jspa?threadID=335195

I was able to reverse links using link_ed.dxl

You need to select the DOORS object(s) with the link(s) you want to reverse.
Run the link_ed.dxl
Select the link(s) you want to reverse in the link_ed interface, then click on the Revert button.

It would be prudent to create a test folder with test modules linked together to practice using this tool.

Re: Change link "direction" using DXL
SystemAdmin - Fri Sep 30 18:15:54 EDT 2011

rmoskwa - Wed Sep 28 15:55:03 EDT 2011
I was able to reverse links using link_ed.dxl

You need to select the DOORS object(s) with the link(s) you want to reverse.
Run the link_ed.dxl
Select the link(s) you want to reverse in the link_ed interface, then click on the Revert button.

It would be prudent to create a test folder with test modules linked together to practice using this tool.

Hello,

Beaware that if you have links from source to target the go through more than one link module and you select to modify all links from the same source to target that go through one of those link modules rather than a new linkmodule that the links that are currently in that link module that you have choosen will be deleted. I added a check for the linkmodule to fix this bug.

Thank you,
Jim