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: Inlink - Identifying deleted source object
Topic Summary:
Created On: 29-Oct-2004 10:10
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 Mark Whalley, on Friday, March 11, 2005 5:07 PM

Answer:
Unfortunately I do have a lot of modules, 30 + source modules linked to 15 + summary modules.

I'll give your script a tr, thanks.

Mark
 29-Oct-2004 10:10
User is offline View Users Profile Print this message


Mark Whalley

Posts: 8
Joined: 19-Jul-2004

I have two modules with links from one to another. I need to be able to check, from the target module, if any of the objects in the source module have been deleted (not purged) since the links were set up. I thought I might be able to do it using the echo command but I only get False - regardless of whether or not the source object has been deleted.

Mark

-------------------------

I used to have an open mind ... but my brains kept falling out!
Report this to a Moderator Report this to a Moderator
 29-Oct-2004 12:56
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Haven't played with echoed links yet, but they are specific to baselines, not deleted objects.

Have you tried testing the source object?



-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 5-Nov-2004 11:24
User is offline View Users Profile Print this message


Mark Whalley

Posts: 8
Joined: 19-Jul-2004

Ok.
So for each module,
1 I loop through using linkref variables and open all linked modules.
2 I loop through using link variables and check the isDeleted state of each object
3 I close each of the modules I opened in 1.

I can do this however I would like to implement a more 'elecant' solution.
1 loop through using linkref variables and for each module
2 open that module with the linkref variable and then 'generate' the link variable
3 check the isDeleted state of the linked object
4 close the module

This will save me having several modules open at once and also having to maintain a list of open modules.

Mark

-------------------------

I used to have an open mind ... but my brains kept falling out!
Report this to a Moderator Report this to a Moderator
 10-Nov-2004 17:21
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Open the modules invisibly (use "false" as the second "read" parameter) and don't worry about keeping track of them.
Report this to a Moderator Report this to a Moderator
 11-Nov-2004 08:39
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Welcome back Louie - long time no read.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 15-Nov-2004 14:47
User is offline View Users Profile Print this message


Mark Whalley

Posts: 8
Joined: 19-Jul-2004

Won't this use up huge chunks of memory? What will happen if I try and open a module that is already open? Will it open two 'invisible' instances of the same module or will trying the second open be reported as a failure?

Mark

-------------------------

I used to have an open mind ... but my brains kept falling out!
Report this to a Moderator Report this to a Moderator
 15-Nov-2004 21:51
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

If only opens once even if its already open. Yes, memory gets used up but its not that big a deal unless you've got a whole bunch of them.

[1] I tend to do the following so one script won't close another's module:
bool IsOpen = open(module(NameFull))
Module mCurr = read(NameFull, false)
...
if (!IsOpen) close(mCurr)

[2] You can close all of the by:
for mod in current Project do
{ mName = mod."name"
if (isVisible(mod))
continue
if (isEdit(mod))
if (!confirm(mName " is open Write. Close it?"))
continue
if (isShare(mod))
if (!confirm(mName " is open Share. Close it?"))
continue
if (unsaved(mod) and confirm(mName " Needs saved. Save it?"))
save(mod)
close (mod) // this happens if not "continued"
}

- Louie
Report this to a Moderator Report this to a Moderator
 16-Nov-2004 09:12
User is offline View Users Profile Print this message


Mark Whalley

Posts: 8
Joined: 19-Jul-2004

Answer Answer
Unfortunately I do have a lot of modules, 30 + source modules linked to 15 + summary modules.

I'll give your script a tr, thanks.

Mark

-------------------------

I used to have an open mind ... but my brains kept falling out!
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.