![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Open a module for read in DXL Topic Summary: Created On: 23-Feb-2005 22:11 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I need dxl codes that checks if a module is opened, if not open it.
The following code works fine if the target module opened, otherwise it shows errors at run time.
Thanks in advance!
Link lnk
Object o
string lnkModName
int numLinks = 0
for o in current Module do {
for lnk in o ->"*" do {
numLinks++
lnkModName = fullName module (lnk)
Object trg = target(lnk)
print identifier(trg) "\n"
}
}
print "There are " numLinks " outgoging links in this module ";
|
|
![]() |
|
![]() |
|
The best way to get the code you need is to run the analysis wizard and select "all modules".
Look at the code produced by selecting column properties->browse->current to see the DXL. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» General Discussion
»
Open a module for read in DXL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.