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: Getting data from all modules in folder or project, opened or closed
Topic Summary:
Created On: 8-Jan-2007 19:56
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.
 8-Jan-2007 19:56
User is offline View Users Profile Print this message


Anil Prasad

Posts: 1
Joined: 8-Jan-2007

We have data that needs to be written out to a text file for all modules in a folder. Right now, the code can get the data if the module is open. Is it possible to do this without opening all modules?

I tried to use type Item instead of Module, but I was not able to use the for loop for each object and column.
Here is the code that gets the text in each object of a column named "Data," but it only does so if the module is opened:



Edited: 8-Jan-2007 at 20:01 by Anil Prasad
Report this to a Moderator Report this to a Moderator
 9-Jan-2007 00:30
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Looping through projects doesn't work so well. You need to loop through the Items in a Folder; first looking for modules in the folder and then recursively considering the sub-folders.

See attached for functions I wrote today that should get you started. No, they don't compile but I'm not going to debug it.

- Louie
Report this to a Moderator Report this to a Moderator
 10-Jan-2007 12:58
User is offline View Users Profile Print this message


Henrik Morast

Posts: 4
Joined: 17-Nov-2005

No, you have to open the modules. However if you open them read-only without diaplying them and close before you open the next module it will be fairly quick. A few extra lines in your code will do the trick. Note this suggestion will close modules that was already open as well. You could check for this and close only modules opened by script.
Report this to a Moderator Report this to a Moderator
 12-Jan-2007 13:23
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

I am told that DOORS 9 will allow access to module level attributes when the module is closed.

-------------------------
Tony Goodman
http://www.smartdxl.com
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.