How do I display all of the links in a DOORS document?

I have many DOORS documents that I wish to be able to generate a list of all of the incoming and outgoing links. I have searched the DXL help section, and use the following:

Object o = current
string srcModName
for srcModName in o<-"*" do print srcModName "\n"
The comment above this in the help section is:
This example prints the unqualified name of all the source modules for incoming links to the current object:

However, I find that when I run this, it only lists the current highlighted line in DOORS.

Has anyone else an issue with this, or modified it to perform as expected?

Thank you
Gedinfo - Mon Jun 28 12:11:33 EDT 2010

Re: How do I display all of the links in a DOORS document?
SystemAdmin - Mon Jun 28 17:18:15 EDT 2010

Hi,

the code works as it says in the DOORS help:
it lists the source module names for the current object.
this means, it displays only entries for the currently selected object.

to get the entries for all objects in your module, you've just to put
your code into another for-loop:
 

string srcModName
Object o 
for o in current Module do
{
  for srcModName in o<-"*" do 
    print srcModName "\n" 
}

 


Perhaps you want also to print the information,
to which object the soucre belongs?
Therefor, you should add the current objects id
or content to your print-statement.

Regards,
Alexander Karpa