![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Recursive in-link tally column Topic Summary: Created On: 11-Aug-2006 00:21 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Worked like a charm! Thanks. Jacqueline | |
![]() |
|
Hello, Any help appreciated. Thanks, GA-ASI Systems/Project Engineering (858) 455-2680 Direct |
|
![]() |
|
![]() |
|
Hi Jacqueline,
you could try these few lines of code. ![]() Please place them into a Layout DXL column and it will display the number of inlinks .... Greetings Reik Schröder ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Hello Reik,
Thanks for responding with this suggestion. It seems to count the links, but is there a way to make it recursive? That is, I would like to be able to count the links all the way down the chain. In the following example, the count for User Req spec obj3 should not be 1, but 3. We have links going down through as many as six levels. Do you know of a way to count down through the modules? User Req spec obj3 -> System spec obj6 -> Subsys1 spec obj6 -> SubsysSW spec obj6 Thanks in advance for whatever help you can offer. Jacqueline Edited: 14-Aug-2006 at 17:41 by Jacqueline Lizar |
|
![]() |
|
![]() |
|
The attached should get you started. I ran it as layout DXL but it can take a VERY long time with multiple layers of links, so I made it into attribute DXL instead. I lifted the "auto-type-sensing" code from a sample attribute DXL script...
If you'd still like it as layout code, just replace everything after the "chaseLinks(obj)" line with: display numLinks "" A note of warning, though: this code will only end when there are no more links to chase down. In other words, if you have something like A->B->C->D->A, it will NEVER end. Make absolutely sure you don't have anything like that, or add some code to bail out if you find circular links. Hope that helps! Chris |
|
![]() |
|
![]() |
|
Worked like a charm! Thanks.
Jacqueline |
|
![]() |
|
![]() |
|
anybody know how to update this script to check using a skip list? TIA
------------------------- Rich Mason richard_mason@drsoptronics.com |
|
![]() |
|
![]() |
|
Just add a skip list. Didn't test but should work.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com Edited: 5-Aug-2008 at 20:41 by David Pechacek |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Recursive in-link tally column
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.