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: Deleting links for selected objects
Topic Summary:
Created On: 30-Oct-2007 19:02
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.
 30-Oct-2007 19:02
User is offline View Users Profile Print this message


Jason Shapiro

Posts: 5
Joined: 30-Oct-2007

Hello,

I would like to write a script to delete links for all the selected objects in a module.  Anybody know where to start or if any scripts already exsist?  I was thinking I need to some how filter the objects in view to only those selected, use a for loop to delete the links, and then remove the filter but I don't know how to create that filter in DXL.  Anyone have some help or suggestions?

Thanks

Report this to a Moderator Report this to a Moderator
 30-Oct-2007 19:41
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

To get the objects you care about you don't need to add a new filter. The following should figure out which objects are currently selected.

Object o
for o in (current Module) do
{ // for currently displayed objects...
if (!isSeleted(o)) continue
// o is selected, so delete its links
}
Report this to a Moderator Report this to a Moderator
 30-Oct-2007 20:10
User is offline View Users Profile Print this message


Jason Shapiro

Posts: 5
Joined: 30-Oct-2007

Sweet thanks!! I didn't even know !isSelected was a command.

Report this to a Moderator Report this to a Moderator
 31-Oct-2007 07:13
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Depending on your needs also the DOORS Tools / Delete links tool might work. With this you can delete links from a selected set of objects (or display set if you have filtered) going to a specific module through a specific link module.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 31-Oct-2007 13:59
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

BTW, you need to be careful when 'selecting'. If you click on one object and then shft-click on one lets say 2 below it, there is no guarantee that the only objects that get selected are the ones between the ones clicked. If the objects are in different sections you will end up selecting some parents of the objects you selected. You also need to be mindful when the selection includes Tables.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.