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: Listing Modules in Database
Topic Summary:
Created On: 12-Jun-2007 17:16
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.
 12-Jun-2007 17:16
User is offline View Users Profile Print this message


Sudip Das

Posts: 14
Joined: 2-May-2007

Does anybody know how to list all the modules within the entire Doors database? 

I have a script that shows all the folders, projects and modules within a selected project where I can filter the output to only show the modules.  However, I need to create a loop that starts at the base directory of the database and loops through all the projects and folders. 

I can imagine the code would look something like this...

for <Item &itemRef> in <Database> do {
...
}

I don't know how to reference the database, however.
Report this to a Moderator Report this to a Moderator
 12-Jun-2007 17:22
User is offline View Users Profile Print this message


Chris Welch

Posts: 19
Joined: 10-Jan-2006

One way would be to do something like the attached code....

Report this to a Moderator Report this to a Moderator
 12-Jun-2007 19:41
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Sudip

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 12-Jun-2007 19:42
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Sudip,

Another way to do it...

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 12-Jun-2007 20:15
User is offline View Users Profile Print this message


Sudip Das

Posts: 14
Joined: 2-May-2007

Thanks Mike
Report this to a Moderator Report this to a Moderator
 14-Jun-2007 17:43
User is offline View Users Profile Print this message


Sudip Das

Posts: 14
Joined: 2-May-2007

The version of the code that Mike posted above works correctly.  However, I added some lines to open the module, read the last modified by attribute and close the module.  When I run the script, doors hangs and I need to kill it with the task manager.  When I look at the output file, it always hangs at the same point.  I've tried searching through smaller projects and it will work with some and hang on others, usually the larger ones.  It always behaves consistently from project to project.  

Are there any known issues with opening and closing a large number of modules with this method?  Only one module is open at a given time.   

My version of the script is attached
Report this to a Moderator Report this to a Moderator
 14-Jun-2007 17:58
User is offline View Users Profile Print this message


Bob Mathis

Posts: 32
Joined: 12-Apr-2005

I tried your code and did not have any problems with it. I only have about 350 modules in my Database. How many do you have?

-------------------------
Bob Mathis
Robert.S.MATHIS@odot.state.or.us
Report this to a Moderator Report this to a Moderator
 14-Jun-2007 18:12
User is offline View Users Profile Print this message


Sudip Das

Posts: 14
Joined: 2-May-2007

I have about 460 modules.  Some of them are quite large though and take about 5 seconds to open from the module explorer.
Report this to a Moderator Report this to a Moderator
 14-Jun-2007 20:16
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

I find that its not the size of the module that matters as much as the amount of history to load and the links that have to be gotten. We have a module with only 500ish objects but it takes 10-15 seconds to load because it hasn't been baselined in 2 years. Don't ask me why. I've only been here 6 months. I brought it up to my boss though.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
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.