![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Unloading a baseline Topic Summary: What function is available for this purpose? Created On: 15-Nov-2007 18:07 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have a situation where I want to loop through all the baselines of a module,
opening and then closing each one after I complete operations on them. What function unloads baselines? Thanks ------------------------- Tara L. Wilk Curmudgeon-at-large, NGC engineer in spare time |
|
![]() |
|
![]() |
|
A baseline when opened gets assigned to a module handle. So you close it like any other module.
Module baselineHandle = load(Module m, Baseline b, bool showTheBaseline) close(baselineHandle) ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Hello David (and Tara)
We have the same problem where we walk through a skiplist full of baselines (some 60 baselines) I have tried the following, this works, but is not very efficient Best regards, Edwin Buisman. |
|
![]() |
|
![]() |
|
I don't recommend looping through it like that. I would recommend using an integer key for the skip list, keeping a variable that holds how many baselines are in the skip, and then using a for loop that goes off the integer key to access them. See following code. Doing it the way you're doing it is just asking for a null reference from a previous closed one.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Hello David,
This still gives the problem of a closed module reference, The error will be something like: No current module..... |
|
![]() |
|
![]() |
|
Sorry. This works. Granted I'm not doing anything inside the if statement. But it runs without issue. Modify as needed.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 26-Nov-2007 at 20:18 by David Pechacek |
|
![]() |
|
![]() |
|
Don't see your objection to the loop. The 'for data in skip' loop retrieves DATA in KEY sorted order. Don't see any advantage to searching for the sequencer KEY as in your code; especially since you have no check to see if 'find; actually found it.
I would also avoid using 'baseline' as an identifier since its the name of a perm. I recall several years ago that some v4 code failed to work in v5 because of the use of a variable 'length'. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Unloading a baseline
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.