![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Linkset, Target and Number of Links Topic Summary: How to...? Created On: 4-Jun-2007 21:13 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|||||||
I'm looking for how to open a source module, find all linkset in the module and then create a file with the target module name, link module name and the number of links by target module name.
Someone please give me an idea i'm not looking for the script just a few guidelinks to know how. I get this [PartitionLinkset findLinkset(PartitionModule pm, string source, string target) ] from the DXL reference. But to be realistic I don't know how to integrate it with some other script. |
|||||||
![]() |
|||||||
![]() |
|||||||
Here are three answers to your question.
Answer 3 is closest to what you are asking for, but the others are included to help show the differences between LMDs, linksets and links and how they can be handled in DXL. Linksets are not stored in the source module, they are stored in the link module. Links themselves are stored in the source module. Link Module Descriptors (LMD's) aka linkset pairings are stored in the parent folder of the source module. I have attached three scripts. All three work recursively from the current folder or project downwards and they all generate a CSV report. listLMDs1.dxl generates a list of link module descriptors. listLinksets.dxl generates a list of linksets. listLinkCounts.dxl generates a list of link counts per linkset.
------------------------- Tony Goodman http://www.smartdxl.com |
|||||||
![]() |
|||||||
![]() |
|||||||
Tony,
This is great, but i need an easy program with no DBE.
I need to perform this from the Source Module and my output should be like in the listLinksets.dxl program you posted. I can work with the ones that you posted because there are complicated for my kind of knowledge in DXL. I only know the basics.
|
|||||||
![]() |
|||||||
![]() |
|||||||
What you are asking for is actually more complicated from a DXL coding point of view because you have to count links for each source and target module.
Anyway, the attached does this with out a dialog box. It prints a count of links to/from each module together with the link module name. Grand totals are also generated. Output is printd to the DXL interaction window. Copy and paste into notepad and then save as a *.csv file. Format of output is as follows: <IN Link Count>,<Source Module>,<Current Module>,<Link Module> ... <Total Incoming>,"TOTAL INCOMING",, <OUT Link Count>,<Current Module>,<Target Module>,<Link Module> ... <Total Outgoing>,"TOTAL OUTGOING",, ------------------------- Tony Goodman http://www.smartdxl.com |
|||||||
![]() |
Telelogic DOORS
» DXL Exchange
»
Linkset, Target and Number of Links
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.