Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Recursive in-link tally column
Topic Summary:
Created On: 11-Aug-2006 00:21
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Jacqueline Lizar, on Wednesday, August 16, 2006 10:52 PM

Answer:
Worked like a charm!  Thanks.

Jacqueline
 11-Aug-2006 00:21
User is offline View Users Profile Print this message


Jacqueline Lizar

Posts: 21
Joined: 8-Aug-2006

Hello,

Does anyone have a script (layout DXL, preferably) that tallies the number of recursive in-links on module objects?  I don't need ID numbers, text, etc., just a raw number of in-links traceable to objects in a (parent) module.fficeffice" />>>

>

Any help appreciated.>>

>

Thanks,>>

>

>>

Jacqueline Lizar>>

GA-ASI Systems/Project Engineering>>

(858) 455-2680 Direct>>

Report this to a Moderator Report this to a Moderator
 11-Aug-2006 08:01
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

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
Report this to a Moderator Report this to a Moderator
 14-Aug-2006 17:39
User is offline View Users Profile Print this message


Jacqueline Lizar

Posts: 21
Joined: 8-Aug-2006

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
Report this to a Moderator Report this to a Moderator
 14-Aug-2006 18:28
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

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
Report this to a Moderator Report this to a Moderator
 16-Aug-2006 22:52
User is offline View Users Profile Print this message


Jacqueline Lizar

Posts: 21
Joined: 8-Aug-2006

Answer Answer
Worked like a charm!  Thanks.

Jacqueline
Report this to a Moderator Report this to a Moderator
 5-Aug-2008 19:20
User is offline View Users Profile Print this message


Rich Mason

Posts: 26
Joined: 11-Apr-2007

anybody know how to update this script to check using a skip list? TIA

-------------------------
Rich Mason
richard_mason@drsoptronics.com
Report this to a Moderator Report this to a Moderator
 5-Aug-2008 20:26
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 0 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.