![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Closing all Open modules Topic Summary: Created On: 22-Sep-2006 10:37 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
Does anyone have any idea on how to close all the open modules in a database. Like what we do from the menu, Tools->Manage Open Modules..-> Close Modules. Any particular function which does the same operation. |
|
![]() |
|
![]() |
|
The loop for module in database returns open modules only.
e.g. Module m for m in database do { close(m) } ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
You'll need to run the loop twice, and the first time some modules are not closed because they are open via reference to some other opened module. Actually, IIRC, you should run the loop 3 times.
I'd be tempted to add "if (isVisible(mod)) continue" to avoid closing visible modules. - Louie |
|
![]() |
|
![]() |
|
My 'version runs two loops, the first checks the module type is NOT link and closes the required open modules, then repeats the loop for link modules.
That way you avoid 'unable to close' messages.
|
|
![]() |
|
![]() |
|
Attached is the function I use. Its old and should be updated. IIRC, there was a serious issue with the perm "unsaved" which did NOT always catch all the changes (at least in DOORS v6), and thus the function should be modified.
fAppend should be replaced by concatenation fGetAndDelete should be replaced with getting the info, deleting the buffer, then returning the info. Golly, this sure is an ugly function. Did I really write this??? - Louie |
|
![]() |
|
![]() |
|
Attached is the function I use. Its old and should be updated. IIRC, there was a serious issue with the perm "unsaved" which did NOT always catch all the changes (at least in DOORS v6), and thus the function should be modified.
fAppend should be replaced by concatenation fGetAndDelete should be replaced with getting the info, deleting the buffer, then returning the info. Golly, this sure is an ugly function. Did I really write this??? - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Closing all Open modules
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.