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: Count Requirements in Latest Baseline
Topic Summary:
Created On: 12-Dec-2006 13:15
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 David Pechacek, on Tuesday, December 12, 2006 3:27 PM

Answer:
Check the default view of your Baseline to ensure that its not filtering it.  If it is, you'll only get the objects in the current view I believe.

I'm currently doing some scripts involving baselines and am not having an issue just using the standard

Object o
Baseline b = (<majorversionnumber>, <minorversionnumber>, <suffixstring>
Module base = load(current, baseline, false)
for o in base do {
}

syntax.  I'm actually getting all the available baselines in the current module and selecting which I want to load which is why I'm not using the getMostRecentBaseline() command.
 12-Dec-2006 13:15
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

I need to be able to open the latest baseline in the current module, and loop through the objects to count the requirements, but it would appear that

for o in b do {

o is object
b is the latest baseline

does not work.

Could anyone please point me in the right direction ?


Many thanks

Report this to a Moderator Report this to a Moderator
 12-Dec-2006 13:25
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Look in help folder under
Baseline getMostRecentBaseline(Module m [,bool lastbaseline])
Module load([Module m,] Baseline b, bool display)
Report this to a Moderator Report this to a Moderator
 12-Dec-2006 13:28
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Thank you.

I have loaded it -

load(m,b, false)

Presumably I can then loop through by using

for o in m do {

?

Thanks

Report this to a Moderator Report this to a Moderator
 12-Dec-2006 14:38
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

I've tried just counting objects in the latest baseline, but they are not correct.
Some are close, some are way off.
Is there anything to watch out for when counting in baselines?

Thanks
Report this to a Moderator Report this to a Moderator
 12-Dec-2006 14:40
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

You may have to open in the format and then apply correct filter -- this all depends upon your implementation details
Report this to a Moderator Report this to a Moderator
 12-Dec-2006 15:10
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Answer Answer
Check the default view of your Baseline to ensure that its not filtering it.  If it is, you'll only get the objects in the current view I believe.

I'm currently doing some scripts involving baselines and am not having an issue just using the standard

Object o
Baseline b = (<majorversionnumber>, <minorversionnumber>, <suffixstring>
Module base = load(current, baseline, false)
for o in base do {
}

syntax.  I'm actually getting all the available baselines in the current module and selecting which I want to load which is why I'm not using the getMostRecentBaseline() command.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 12-Dec-2006 15:27
User is offline View Users Profile Print this message


Lisa Carver

Posts: 61
Joined: 15-Jun-2005

Thank you all for your help.
Things are looking better now in the output.

Many thanks again
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.