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: Change Link direction
Topic Summary:
Created On: 25-Jan-2005 11:54
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.
Answer This question was answered by Tony Goodman, on Wednesday, January 26, 2005 10:44 AM

Answer:
I have fixed the script to work for links between objects in the same module.
 25-Jan-2005 11:54
User is offline View Users Profile Print this message


Samuel Cronje

Posts: 7
Joined: 19-Nov-2003

Hi,
Is there a DXL, or easy way to change the direction of all links in a specific linkset. Someone linked in the wrong direction and it would be a lot of work to delete and add all the links in the right direction.

Thanks
Samuel

-------------------------
Samuel Cronje
EW Systems Engineer
Grintek Avitronics
Centurion
South Africa
Report this to a Moderator Report this to a Moderator
 25-Jan-2005 14:00
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Try the attached.

WARNING:
I tested the script and it does not work for links between objects in the same module.
It deletes and creates links inside a for l in o loop - this is a definite no-no.

These get deleted, so I have removed the script.

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

Edited: 26-Jan-2005 at 09:04 by Tony Goodman
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 06:09
User is offline View Users Profile Print this message


Samuel Cronje

Posts: 7
Joined: 19-Nov-2003

Hi,
Thanks for the DXL Tony, but the one thing that i wanted to do seems to be a problem. I forgot to say that it is an "internal" link. In other words objects within the same module is linked. (we have generic recources defined in a module, when a new "implementation" happens, we create new signal names but link them to the original generic, using filter to get to each implemetation but not loosing the link to the original).

Anyway, your dxl assumes incoming or outgoing but this does not matter. The only thing that i can specify in this case is the specific linkset (in this case the link module only has this one linkset in it).

If you, or someone can help with this i would greatly appreciate it.

Samuel

-------------------------
Samuel Cronje
EW Systems Engineer
Grintek Avitronics
Centurion
South Africa
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 09:26
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
I have fixed the script to work for links between objects in the same module.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 10:47
User is offline View Users Profile Print this message


Samuel Cronje

Posts: 7
Joined: 19-Nov-2003

Hi Tony

-------------------------
Samuel Cronje
EW Systems Engineer
Grintek Avitronics
Centurion
South Africa
Report this to a Moderator Report this to a Moderator
 26-Jan-2005 10:47
User is offline View Users Profile Print this message


Samuel Cronje

Posts: 7
Joined: 19-Nov-2003

Hi Tony
Thanks for the DXL, it works great:-) You saved me a lot of work!

Cheers
Samuel

-------------------------
Samuel Cronje
EW Systems Engineer
Grintek Avitronics
Centurion
South Africa

Edited: 26-Jan-2005 at 10:51 by Samuel Cronje
Report this to a Moderator Report this to a Moderator
 13-Jun-2005 18:40
User is offline View Users Profile Print this message


Shawn Stepper

Posts: 96
Joined: 6-Aug-2004

Awesome! This is exactly what I needed. Thanks for posting this!

Update: I added some functionality. You can now select to apply to current object, current with children, display set, or all objects.

-------------------------
Shawn Stepper
shawn.e.stepper@wellsfargo.com

Edited: 14-Jun-2005 at 23:40 by Shawn Stepper
Report this to a Moderator Report this to a Moderator
 15-Jun-2005 18:21
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

Sorry to through a bit of water on the fire, but I think a note of caution is needed here. Reversing links, swapping links between link modules etc makes a very substantial change to the database and involves 3 modules, under certain circumstances the modules can sometimes get out of whack and when they do you can be in serious trouble.

Running a tool similar to this once caused 100+ modules to become corrupted at the company I work for, tools like this are relativley safe to run if you are the only person in the database, but not if other people are referencing the relevant link modules may have the target modules open etc.

We had ghost link modules, loads of modules that wouldn't open, the works really, wasn't much fun.

The problem was also reasonably recreatable, if I remember correctly unloading the linkset in the link module after using it seemed to solve the problem, but I still took the tool out of the company set and only run it myself on request when no one else is on the database, doing anything else was just to risky. 

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 16-Jun-2005 16:17
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Absolutely, Richard.

These sort of tools are for getting out of trouble in an emergency, not for light-hearted use.
I agree that running tools like this should only be done when no-one else is working.
Also, the database/project/module should be backed-up/archived before you start!

-------------------------
Tony Goodman
http://www.smartdxl.com
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.