![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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. | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thanks for the help, now it works.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Getting all views of each module in Database
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.