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: Capturing link module name via DXL
Topic Summary:
Created On: 1-Nov-2006 21:34
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 Louie Landale, on Wednesday, November 1, 2006 11:31 PM

Answer:
Your code only sees links for source modules that are already loaded.

Anyway, you need something like this:
Module mLink = module(l)
print "LinkModule name of link = " (fullName(mLink)) "\n"

- Louie
 1-Nov-2006 21:34
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

The below code does the following:

- For the selected object it will look at all incoming links no matter which link module a link may go through
- For each of these links it will print out the target module

quote:


Object o = current
LinkRef l = null
ModName_ srcModRef = null
string tModule = null

for l in o <- "*" do
{
srcModRef = source(l)
tModule = fullName(srcModRef)
print tModule "\n"
}



My question is how can I capture and the name of the link module that each of these links are going through?

Thanks,

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 1-Nov-2006 21:54
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Your code only sees links for source modules that are already loaded.

Anyway, you need something like this:
Module mLink = module(l)
print "LinkModule name of link = " (fullName(mLink)) "\n"

- Louie
Report this to a Moderator Report this to a Moderator
 1-Nov-2006 23:33
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

Louie,

You are the best! Ever thought of writing a DXL book?

You are correct. The code I developed only works from source modules that are already opened. I designed it to run from an open module only.

Thanks again.

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.