![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Source module access Topic Summary: Created On: 9-Feb-2004 21:50 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: DOORS v5 introduced a DOORS file hierarchy so modules are no longer in the project root folder. Never-the-less, some people at Telelogic/QSS seem to cling to the old notion, where a Module Name was just its base name. There are a few of these silly commands that deal with module base names. They are useless. The "for srcModName in link" loop is one of them, since it ONLY works if all the source references are in the "current" folder, whatever that is. // Load all source modules. Use this loop before // a more usefull "for link in obj <- "*" do" loop. ModName_ srcRef for srcRef in obj <- "*" do { srcMod = fullName(srcRef) yaddy... } The "string Source = source(link)" and "string Target = target(link)" are likewise useless; use "ModName_ Source = source(link)" and "ModName_ Target = target(link)". Always keep track of modules with "Module", "ModName_", or its FULLname. Use (unqualified) base name only for displaying purposes. - Louie | |
![]() |
|
How can I access the full path of a source file that is contained in another folder or another project? I am trying to count all incoming links from the target file. I am able to access those links that are contained in the same folder as the target module but the others are omitted.
string srcModName for srcModName in o<-"*" do { string srcMod = fullName(srcModName) if (!open module srcMod) read (srcMod, false) //print srcMod "\n" } The above code results in an error. Can someone please help. Bobbette |
|
![]() |
|
![]() |
|
DOORS v5 introduced a DOORS file hierarchy so modules are no longer in the project root folder. Never-the-less, some people at Telelogic/QSS seem to cling to the old notion, where a Module Name was just its base name. There are a few of these silly commands that deal with module base names. They are useless. The "for srcModName in link" loop is one of them, since it ONLY works if all the source references are in the "current" folder, whatever that is.
// Load all source modules. Use this loop before // a more usefull "for link in obj <- "*" do" loop. ModName_ srcRef for srcRef in obj <- "*" do { srcMod = fullName(srcRef) yaddy... } The "string Source = source(link)" and "string Target = target(link)" are likewise useless; use "ModName_ Source = source(link)" and "ModName_ Target = target(link)". Always keep track of modules with "Module", "ModName_", or its FULLname. Use (unqualified) base name only for displaying purposes. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Source module access
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.