![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to run a project specific script Topic Summary: Created On: 22-Mar-2006 14:19 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have a dxl script which exports a module content to a file.
This script works fine from within a certain module, but I need it to run from a command line (...\DOORS.EXE -b <MyDXL> ![]() How do I point it to export from a specific project (with all it's modules) ?? When I'm using Project p = project "MyProjName" and try to loop with something like: For m in p do { ... } It wo'nt work (no modules been found)! Tnx. |
|
![]() |
|
![]() |
|
The "for module in project" loop only works for open modules in the project, and when running in batch mode, there are none.
One solution is to declare a string variable (moduleName) and use "for moduleName in project", but this will only get top level modules. The best method for looping through a project to find all Formal modules is to declare an item variable (i) and use "for i in project". This will assign i to be each successive undeleted item (for which the user has read access) in the project, looping recursively through contained folders and projects. You will need to test the results to make sure you only process Formal modules. -Dennis |
|
![]() |
|
![]() |
|
Yes, this is routine:
Item itm for itm in pCurr do { if (type(itm) != "Formal") continue ... } There may be some benefit to making that project the current project before looping through its modules; but I cannot think of why you would need to do that. - Louie |
|
![]() |
|
![]() |
|
Thank u for the good intentions but my question was misunderstood.
I do know how to get a handle to all the modules in the current project. I do NOT know how to get the modules of a specific project (which is NOT the current one). If a little dxl code is availble I'll be most thankful. |
|
![]() |
|
![]() |
|
Maybe you can set the other project to be be current? current = project "/Project name/Subproject name"
------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
Several steps.
1. Does the user select which project? If so, see earlier posts on fnMiniExplorer. https://support.telelogic.com/en/doors/forums/messageview.cfm?catid=17&threadid=2424&highlight_key=y&keyword1=fnMiniExplorer 2. Once in the project/folder, you will need a recursive loop in case there are subprojects/folders. See code below: ------------------------- Cliff Bly Edited: 23-Mar-2006 at 13:45 by cliff Bly |
|
![]() |
|
![]() |
|
Oren, you answered your own question while you were stating it.
quote: You just need to continue developing your code to include the quality suggestions made in this thread. -Dennis |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
How to run a project specific script
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.