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 all views of each module in Database
Topic Summary:
Created On: 13-Jul-2005 18:37
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 cliff Bly, on Thursday, July 14, 2005 10:01 AM

Answer:
1. If running in batch mode, ensure that you disable triggers -t and disable errors noError().
doors.exe -b "c:\\test1.dxl" -u "MYName" -T -l "c:\log1.txt"
2. Move the close(module) statement inside the if (open(..)) statement.
3. Put the text output into a buffer and then output the buffer to the file at the very end.

works for me.
 13-Jul-2005 18:37
User is offline View Users Profile Print this message


Elmar Köhler

Posts: 2
Joined: 13-Jul-2005

Hi, I have the problem to get a handle for each module in the database. In the DXL Reference Manual there are methods described to get a handle for open modules or only a string representation of all modules. My intention is, to read all views of each module and write them to an output file. The script opens every module to get a handle of each module via the method "module(Item itemRef)". Then I am able to get all views and at the end of the script the opened module is closed. This works, but the performance ist quite bad and the script can only be run in the DXL editor. But I have to run the script in batch mode and there it doesn´t work. Perhaps the method "read(String modName)" does only work, when Doors isn´t run in batch mode. Perhaps someone can help me.

Edited: 13-Jul-2005 at 18:41 by Elmar Köhler
Report this to a Moderator Report this to a Moderator
 13-Jul-2005 20:55
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

Answer Answer
1. If running in batch mode, ensure that you disable triggers -t and disable errors noError().
doors.exe -b "c:\\test1.dxl" -u "MYName" -T -l "c:\log1.txt"
2. Move the close(module) statement inside the if (open(..)) statement.
3. Put the text output into a buffer and then output the buffer to the file at the very end.

works for me.

-------------------------
Cliff Bly
Report this to a Moderator Report this to a Moderator
 13-Jul-2005 23:14
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

IIRC you cannot deal with views unless the module is open Visibly. That's the default "true" parameter in your "read" command. I'm pretty sure that since Batch mode doesn't have an interface then you cannot open modules visibly. ..err.. I should say you cannot load views. Since you are only getting the view name I don't see a problem.

I suspect this may work if you open invisibly, currModule = read(modName, false).

- Louie
Report this to a Moderator Report this to a Moderator
 14-Jul-2005 08:56
User is offline View Users Profile Print this message


Paul Tiplady

Posts: 176
Joined: 28-Oct-2003

If you're having problems running something in batch mode that works in the DXL editor, have you tried the solution suggested in the thread "DXL Script Errors out in batch mode but not in DOORS?"?

-------------------------


Paul dot Tiplady at TRW dot com
TRW Automotive
Report this to a Moderator Report this to a Moderator
 14-Jul-2005 10:00
User is offline View Users Profile Print this message


Elmar Köhler

Posts: 2
Joined: 13-Jul-2005

Thanks for the help, now it works.
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.