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: 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
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.
 15-Nov-2007 18:07
User is offline View Users Profile Print this message


Tara Wilk

Posts: 43
Joined: 7-Mar-2006

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
Report this to a Moderator Report this to a Moderator
 15-Nov-2007 18:30
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 20-Nov-2007 14:39
User is offline View Users Profile Print this message


Edwin Buisman

Posts: 38
Joined: 12-Aug-2004

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.
Report this to a Moderator Report this to a Moderator
 20-Nov-2007 17:32
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 22-Nov-2007 09:22
User is offline View Users Profile Print this message


Edwin Buisman

Posts: 38
Joined: 12-Aug-2004

Hello David,

This still gives the problem of a closed module reference, The error will be something like: No current module.....
Report this to a Moderator Report this to a Moderator
 26-Nov-2007 20:15
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 26-Nov-2007 20:51
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
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.