![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
I hope this helps:
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.