![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Inlink - Identifying deleted source object Topic Summary: Created On: 29-Oct-2004 10:10 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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 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! |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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! |
|
![]() |
|
![]() |
|
Open the modules invisibly (use "false" as the second "read" parameter) and don't worry about keeping track of them.
|
|
![]() |
|
![]() |
|
Welcome back Louie - long time no read.
------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
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! |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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! |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Inlink - Identifying deleted source object
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.