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: Anyone know how to get a linkref to turn into a link or an object?
Topic Summary:
Created On: 19-Mar-2004 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.
 19-Mar-2004 22:13
User is offline View Users Profile Print this message


Lin Cui

Posts: 3
Joined: 19-Mar-2004

Linkref lr

how do u turn lr into an object

Object o

o = source lr

does not work....b/c source does not take LinkRef's (it does but it returns string, instead of string i would like object)

helP?
Report this to a Moderator Report this to a Moderator
 22-Mar-2004 19:53
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I don't think you can. That LinkRef stuff seems only useful for finding the other module handle so you can open it up; and all that preceeds the real "for link in obj" loops.

- Louie
Report this to a Moderator Report this to a Moderator
 23-Mar-2004 20:16
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

I hope this helps:
Report this to a Moderator Report this to a Moderator
 25-Mar-2004 16:19
User is offline View Users Profile Print this message


Lin Cui

Posts: 3
Joined: 19-Mar-2004

Thank you doug and louie, however traversing incoming link only work with formal modules.


What i intend to do is to traverse links within a baselined module. Baselined models do not have
links associated with the objects, instead they contain linkref's. I am able to open the baselined module
using methods provided in the documentation however, i am unable to find the object to which the baselined
module is linked to.

I raised this question to telelogic and they have yet to respond. Do you have any ideas?

Edited: 25-Mar-2004 at 16:34 by Lin Cui
Report this to a Moderator Report this to a Moderator
 26-Mar-2004 13:49
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I don't work with v7 yet but suspect the only way would be to:
Get the AbsNo of the baseline Object.
Look for the object with that same AbsNo in the current module.
Look through THAT object's links.

- Louie
Report this to a Moderator Report this to a Moderator
 30-Mar-2004 17:20
User is offline View Users Profile Print this message


Brian Azelborn

Posts: 36
Joined: 2-Dec-2002


The easiest way to see how to follow links to the baseline module is to use the Analysis Wizard to create an incoming links column, then look at what it creates. Here are the parts of the script related to baselines from the Analysis wizard.

for lr in all(o<-linkModName) do {
...
if (isBaseline(sourceVersion lr)) {
otherMod = load(otherMod,baseline(sourceVersion lr),false)
}
...
}
for l in all(o<-linkModName) do {
otherVersion = sourceVersion l
...
if (isBaseline(otherVersion)) {
otherMod = load(otherMod,baseline(otherVersion),false)
}
}

I think all of the functions related to baseline sets are described under the What's New section of the DOORS 7 DXL manual.
Report this to a Moderator Report this to a Moderator
 1-Apr-2004 19:35
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

I've tested this code using DOORS 5.2, but it should work with DOORS 7.

This will allow you to get the source of a linkRef by using the syntax o=source(lref). If the source module is not open, the function will return a null object.

-Dennis
Report this to a Moderator Report this to a Moderator
 5-Apr-2004 17:40
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The manual for "sourceAbsNo" says it returns the source MODULE "absolute number", not OBJECT.
If this is true the documentation should probably say it returns the source MODULE's "Unique ID".

- Louie
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.