![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Recursive Traceability help - specific module vs all open modules Topic Summary: Created On: 19-Jun-2008 12:08 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: You can pass a string to the module that you want to filter on. In example code that follows if sModuleName="" no filter is applied else a filter is applied. Note: I didn't debug the code so there may be some typos and such in my mods | |
![]() |
|
Hi all
I got this script awhile back on these forums from a Grant Cyboron (?) for L3 in Jersey if I remember right. It's a great script and I use it for all my traceability. This one shows in links recursively throughout the system by indenting them in the same column. What I don't like about this script is that the modules have to be open to show anything in the view. And then, once a parent module is open, it seems as if sometimes you'll get it's child inlinks regardless if the child module is open or not, or you'll get other module's inlinks at the same level too regardless if they are open. What I would like to be able to do is show the inlinks recursively in the one column by indenting, like this script does, but be able to choose a specific module and it's children without those modules having to be open. Is there somehow I can insert a module's location into this script with a function to look at one module specifically instead of all open modules? Thanks In Advance ------------------------- Rich Mason richard_mason@drsoptronics.com |
|
![]() |
|
![]() |
|
You can filter out modules by adding line one line as designated
by //FILTER ON MODULE NAME // make sure the module is open in at least read-only mode string trgPath = fullName(source l) if(trgPath !="My Module Full Name") continue //FILTER ON MODULE NAME |
|
![]() |
|
![]() |
|
Ron
thanks a lot for the input. Got this to work, however, it seems as if the recursiveness at lower levels is now gone. I'm sure it's because I'm telling it to look only at the specific module path, but now I need to look at its children also. I used your modification and got the one level down to work, but even with the second level down module open, it would not show in the layout dxl column. Is there a way to modify your code so that the recursiveness is still present? Thanks ------------------------- Rich Mason richard_mason@drsoptronics.com |
|
![]() |
|
![]() |
|
You can pass a string to the module that you want to filter on.
In example code that follows if sModuleName="" no filter is applied else a filter is applied. Note: I didn't debug the code so there may be some typos and such in my mods |
|
![]() |
|
![]() |
|
works great. Thanks!
1000 cocktails to you sir. ------------------------- Rich Mason richard_mason@drsoptronics.com |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.