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: LinkRef usage
Topic Summary: What exactly is LinkRef and how do you use it
Created On: 5-May-2005 22:13
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 Bruce Tuskey, on Friday, May 6, 2005 11:59 PM

Answer:
A "Link" can only get information from modules that are open.

A "LinkRef" can get some information even if the module is not open.

There are some functions that will only work with one or the other.

A typical use is to open modules so "Link" can then be used.

See quick code example:
 5-May-2005 22:13
User is offline View Users Profile Print this message


Ayman Abu-Mostafa

Posts: 9
Joined: 3-Mar-2005

I get the Link and LinkModuleDescriptor classes, but I don't get the LinkRef class. What does it represent? What do you use it for? At first I thought it represented an in-link, but I don't think that's right.
TIA,
Ayman

-------------------------
Ayman

Edited: 7-May-2005 at 00:07 by Ayman Abu-Mostafa
Report this to a Moderator Report this to a Moderator
 5-May-2005 23:06
User is offline View Users Profile Print this message


Bruce Tuskey

Posts: 77
Joined: 2-Mar-2004

Answer Answer
A "Link" can only get information from modules that are open.

A "LinkRef" can get some information even if the module is not open.

There are some functions that will only work with one or the other.

A typical use is to open modules so "Link" can then be used.

See quick code example:

-------------------------
Bruce Tuskey
Sr. Principle Engineer
Tuskey@gmail.com

"All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien)

Edited: 6-May-2005 at 18:25 by Bruce Tuskey
Report this to a Moderator Report this to a Moderator
 7-May-2005 00:01
User is offline View Users Profile Print this message


Ayman Abu-Mostafa

Posts: 9
Joined: 3-Mar-2005

Thanks, Bruce. That explains it.

BTW, I dig your signature.

--Ayman

-------------------------
Ayman

Edited: 7-May-2005 at 00:06 by Ayman Abu-Mostafa
Report this to a Moderator Report this to a Moderator
 13-May-2005 20:18
User is offline View Users Profile Print this message


Ayman Abu-Mostafa

Posts: 9
Joined: 3-Mar-2005

Bruce, I ran this script

LinkRef lr

Object o = current Object

for lr in o <- "*" do

{

ModName_ mn = source(lr)

print name(mn) "; " open(mn) "\n"

}

and got this output,

Module 1; false

Module 2; false

So, I don't think the source(LinkRef) function opens the source module. But, you're right that LinkRef can give you info about a linked module even when it's not open.



-------------------------
Ayman
Report this to a Moderator Report this to a Moderator
 16-May-2005 18:49
User is offline View Users Profile Print this message


Bruce Tuskey

Posts: 77
Joined: 2-Mar-2004

Ayman

"ModName_" is a module handle that does not require the module to be opened.

Try this code:


-------------------------
Bruce Tuskey
Sr. Principle Engineer
Tuskey@gmail.com

"All that is gold does not glitter, not all those who wander are lost:..." - Gandalf the Grey (JRR Tolkien)

Edited: 16-May-2005 at 18:58 by Bruce Tuskey
Report this to a Moderator Report this to a Moderator
 18-Aug-2005 16:38
User is offline View Users Profile Print this message


Hubertus Grobbel

Posts: 58
Joined: 3-May-2005

See quick code example: :-))) and where is the needed example. Somebody has stolen the cream of the thread ...
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.